Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog App Question Pin
Tom Wright2-Jun-03 12:21
Tom Wright2-Jun-03 12:21 
GeneralRe: Dialog App Question Pin
sunjohn2-Jun-03 18:44
sunjohn2-Jun-03 18:44 
GeneralDisplaying time for different time zones Pin
dennisV2-Jun-03 10:50
dennisV2-Jun-03 10:50 
GeneralRe: Displaying time for different time zones Pin
David Chamberlain3-Jun-03 3:56
David Chamberlain3-Jun-03 3:56 
GeneralRe: Displaying time for different time zones Pin
dennisV3-Jun-03 6:51
dennisV3-Jun-03 6:51 
GeneralRe: Displaying time for different time zones Pin
David Chamberlain3-Jun-03 7:10
David Chamberlain3-Jun-03 7:10 
GeneralRe: Displaying time for different time zones Pin
dennisV3-Jun-03 7:21
dennisV3-Jun-03 7:21 
Generalcreating a header blueprint that will be written to memory Pin
johnstonsk2-Jun-03 10:41
johnstonsk2-Jun-03 10:41 
I am creating an application that will display flight simulator data that is
stored in memory.
(A reflective memory PCI card connected through a daisy chain to other
cards)

I have written the application that will read the data from memory, but now
I need to write a application that will only write specific values.

My boss wants me to create a header written to memory that is a blue print
of what values will be written.

This is what I am thinking:

typedef struct sim_address_data{
char *signal; //this is the name of the signal (ie pitch,yaw,roll)
????? *offset; //this is the offset from 0x0 to where the data will be written
//and I don't know what type this should be
double *value; //this will hold the value of the signal.
//all signals are doubles
double *min; //this will be the minimum that the value could be
double *max; //this will be the max that the value could
be
}rfm_sim_data;


rfm_sim_data sim_data[] = {//these are just examples

{"pitch", ??what ever offset??,functionCall_to_return_value_at(*offset), 0.0, 10.0};
{"yaw", ??what ever offset??, functionCall_to_return_value_at(*offset), -0.1, 5.0};
};

By writing the typedef to the first part of memory then any application can
access it to find out how the data is written.
and they will know how to parse the information in memory.

Do any of you experts think that this is the correct way to do this?
If not what would be a better way?

thanks,
Steven


General.rc files and encoding Pin
Jon Sagara2-Jun-03 10:09
Jon Sagara2-Jun-03 10:09 
GeneralCMenu question Pin
Anonymous2-Jun-03 9:59
Anonymous2-Jun-03 9:59 
GeneralRe: CMenu question Pin
Maximilien2-Jun-03 10:08
Maximilien2-Jun-03 10:08 
GeneralSerial Communication Problem Pin
GeneMcAulpin2-Jun-03 9:40
GeneMcAulpin2-Jun-03 9:40 
GeneralRe: Serial Communication Problem Pin
Roger Allen3-Jun-03 2:41
Roger Allen3-Jun-03 2:41 
QuestionHow to adapt window size to screen resolution Pin
gmlnd2-Jun-03 8:58
gmlnd2-Jun-03 8:58 
AnswerRe: How to adapt window size to screen resolution Pin
Dominik Reichl2-Jun-03 9:44
Dominik Reichl2-Jun-03 9:44 
GeneralRe: How to adapt window size to screen resolution Pin
gmlnd2-Jun-03 10:00
gmlnd2-Jun-03 10:00 
GeneralDisabling checkbox Pin
dorkshoe2-Jun-03 8:55
dorkshoe2-Jun-03 8:55 
GeneralRe: Disabling checkbox Pin
Dominik Reichl2-Jun-03 9:42
Dominik Reichl2-Jun-03 9:42 
GeneralRe: Disabling checkbox Pin
abc8762-Jun-03 9:56
abc8762-Jun-03 9:56 
GeneralRe: Disabling checkbox Pin
Dominik Reichl2-Jun-03 20:35
Dominik Reichl2-Jun-03 20:35 
GeneralRe: Disabling checkbox Pin
abc8762-Jun-03 9:50
abc8762-Jun-03 9:50 
QuestionHICON to HBITMAP? Pin
Dave_2-Jun-03 7:50
Dave_2-Jun-03 7:50 
AnswerRe: HICON to HBITMAP? Pin
Dominik Reichl2-Jun-03 8:43
Dominik Reichl2-Jun-03 8:43 
GeneralWinRTP and CE Pin
javigimenez2-Jun-03 6:53
javigimenez2-Jun-03 6:53 
GeneralProblem with SQLColumns in ODBC API Pin
insanely4202-Jun-03 6:48
insanely4202-Jun-03 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.