This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with structures containing structures

Hello,

I have a problem with the following structure declaration:

typedef struct
{
HDEntriesTYPE HDWindowStartSTRUCT;
} actualPlayerStatusTYPE;

typedef struct
{
unsigned long StartClusterUL;
unsigned long FileSizeUL;
unsigned char FileNameUC[HD_MAX_NAME_LENGTH]; // 40 Characters + ".mp3" + \0
} HDEntriesTYPE;

This should generate a type structure named "actualPlayerStatusTYPE" which contains a structure "HDWindowStartSTRUCT" of the type HDEntriesTYPE. But when I compile the above declarations I get two compiler error messages:
C141: syntax error near 'HDEntriesTYPE'
and
C129: missing ';' before HDWindowStartSTRUCT

I don't no where is the problem. Can anybody give me a hint?!

Thanks.

RoGeR

0