typedef struct union question

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

I am programming in MS Flight Simulator (FS) environment. I #include a FS
header file called gauges.h in my C code. In that header file there is a
typedef struct that has some system variables that I would like to use in my
code. The typedef looks like this:

typedef struct XYZF64
{
union
{
struct { FLOAT64 lon; FLOAT64 alt; FLOAT64 lat; };
struct { FLOAT64 x; FLOAT64 y; FLOAT64 z; };
struct { FLOAT64 pitch; FLOAT64 heading; FLOAT64 bank;};
};
}
XYZF64, *PXYZF64, **PPXYZF64,
POS3_FLOAT64,
VEL3_FLOAT64, *PVEL3_FLOAT64, **PPVEL3_FLOAT64,
ACC3_FLOAT64,
ROT3_FLOAT64,
ROV3_FLOAT64,
ROA3_FLOAT64;

For instance, how do I declare and use the x, y & z variables in my code? I
believe them to be system variables that are continuously being updated by
FS and I would like to be able to read their values.

Thanks,
Thomas


.



Relevant Pages

  • Re: typedef struct union question
    ... a FS header file called gauges.h in my C code. ... there is a typedef struct that has some system variables that I ... For instance, how do I declare and use the x, y & z variables in my ... I believe them to be system variables that are continuously ...
    (microsoft.public.vc.language)
  • Re: typedef struct union question
    ... a FS header file called gauges.h in my C code. ... there is a typedef struct that has some system variables that I would ... For instance, how do I declare and use the x, y & z variables in my ... I believe them to be system variables that are continuously ...
    (microsoft.public.vc.language)
  • Re: typedef struct union question
    ... a FS header file called gauges.h in my C code. ... there is a typedef struct that has some system variables that I would ... For instance, how do I declare and use the x, y & z variables in my ... I believe them to be system variables that are continuously ...
    (microsoft.public.vc.language)
  • struct & enum & :: visibility operator
    ... I have a header file like this: ... typedef struct _S S; ... I'm using the Microsoft 2005 environment and so its compiler. ...
    (microsoft.public.vc.language)
  • Re: ctypes & Wrapping Complex Datatypes
    ... I'm not sure how to wrap ... /* This defines the Handle type in a header file. ... typedef struct DFFTSHandle_s *DFFTSHANDLE; ... structure you may just use a void pointer. ...
    (comp.lang.python)