473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Re: How do I do generic programming in C?

Nick Keighley wrote:
On 13 May, 18:21, "Robbie Hatley"
<see.my.signat...@for.my.email.addresswrote:
>Greetings, group. I have a situation at work in which our software
(running on a PC) needs to talk to two different versions of our
firmware (running on circuit boards in boxes hundreds of feet away,
communicating via RS232).

The two firmware versions (1400 and 1600) are very similar, with 1600 having a few more members in each of several key structs used for
communicating and storing data. (Alas, the added members were
scattered through the structs by our firmware designer, instead of
being added only at the end. Sigh.)

hardware guys (and firmware guys are pretty close to hardware guys)
can be evil.
Hey, that's me! At least part of the time, so I must be part time evil....

--
Ian Collins.
Jun 27 '08 #1
1 1969
Ian Collins wrote:
Nick Keighley wrote:
>On 13 May, 18:21, "Robbie Hatley"
<see.my.signat...@for.my.email.addresswrote:
>>Greetings, group. I have a situation at work in which our software
(running on a PC) needs to talk to two different versions of our
firmware (running on circuit boards in boxes hundreds of feet away,
communicating via RS232).

The two firmware versions (1400 and 1600) are very similar, with 1600 having a few more members in each of several key structs used for
communicating and storing data. (Alas, the added members were
scattered through the structs by our firmware designer, instead of
being added only at the end. Sigh.)
hardware guys (and firmware guys are pretty close to hardware guys)
can be evil.

Hey, that's me! At least part of the time, so I must be part time evil....
I was a firmware guy, but I was never close to being a HW guy. Now I'm a
SW guy. However, BWAHAHAHAAA!!!!!

I agree that the best solution would have been for the new members to be
added at the end, but the FW developer might have been told that all of
the old units would be upgraded so this situation would not arise.
--
Flash Gordon
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Roman Suzi | last post by:
Hi, I wonder, does Python support generic programming paradigm, and to what extent (I guess, it doesn't do it in full)? And (or) does it move in that direction? Will we ever see concept...
17
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number....
6
by: gong | last post by:
hi i recently looked at alexandrescu's book on c++, and i found it pretty much unintelligible. i have a few points which i wonder about. 1. as a developer, it is important, from a bottom line...
4
by: Leslaw Bieniasz | last post by:
Cracow, 20.10.2004 Hello, As far as I understand, the generic programming basically consists in using templates for achieving a static polymorphism of the various code fragments, and their...
4
by: PDHB | last post by:
I'm sorry, but this is just the height of stupidity. I love the dot net framework. It has actually been sufficient to convert an anti-microsoft extremist (myself) to the windows camp. But not...
9
by: mps | last post by:
I want to define a class that has a generic parameter that is itself a generic class. For example, if I have a generic IQueue<Tinterface, and class A wants to make use of a generic class that...
3
by: muler | last post by:
Hi, " Generic types may not be "overloaded"; that is, the identifier of a generic type must be uniquely named within a scope in the same way as ordinary types. class C {} class C<V{} ...
3
by: Johs | last post by:
I have read that when you are using templates you are making generic programs. But I don't see whats so generic about templates. You can make generic programs without templates through the use of...
15
by: Anthony Paul | last post by:
Let's say that I would like a generic type that supports Min/Max properties and can be double or integer or even datetime if need be, something flexible. So I go about creating the following...
4
by: rlwebbnafex | last post by:
Hello, I have never used generic programming so I need a little help for an idea on what I can do. I have defined a lot of classes like the following. The classes are all pretty much the same,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.