06-21-2010 04:37 PM
I am getting an "Invalid Use of Struct" on my "instrument" text.
typedef struct { device dev; char *name; unsigned short int channels; } instrument;
And device is created in an includ file and contains teh following
typedef int device; enum { E3648A = 1, AG66321B = 0, AG66321D = 0, //Same functions as 66321B PST3202 = 2 }
06-21-2010 11:50 PM
typedef enum
Hi,
I got your code and re-arranged it a little.
The following code did not generate any compile errors on CVI 6.0 which is the only version I have on this machine.
Make sure the device enum is defined before the compiler works on instrument struct.
Otherwise it cannot understand what a "device" is.
typedef enum { E3648A = 1, AG66321B = 0, AG66321D = 0, PST3202 = 2 } device; typedef struct { device dev; char *name; unsigned short int channels; } instrument;