|
From: Abhijit S. <mu...@gm...> - 2002-09-21 17:24:45
|
> Browsing winuser.h shows up that RC_INVOKED must be defined to get the
winuser.h file to be
> included.
>
> Defining it at the top of the sourcecode gives me a huge number of compile
errors...
>
> Can you explain this ?
I'm not really sure, but I think RC_INVOKED is automatically #define'd by
the compiler when it's calling from a resource file, to block-out parts of
the code inapplicable to it (like function prototypes, etc.). Try
#ifdef RC_INVOKED
#error some message
#endif
in a header, and include it *only* in a resource file and then only in a
code file. It should error only when included from the rc.
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|