typedef not "deffing" working...

Started by
1 comment, last by webwraith 18 years ago
...of course, it could (and probably is) just me making a mistake. Again. I have a class. Now instances of this class needs a pointer to another instance of the same class(pretty much a linked list). The problem was that I tried to typedef it as so;
      class RECT;// the actual class is defined later on
      typedef *RECT HRECT;
the compiler (MinGW32-gpp) won't accept this, saying;
expected init-declarator before "HRECT"
I know it's probably right, but I don't know any way around this. Can any help me out?
Advertisement
typedef RECT* HRECT;


Arn't you trying to dereference a type there.

Dave
heheheh[embarrass] I just don't stop making the same mistake...

Thanks, my code works fine now

This topic is closed to new replies.

Advertisement