MFC Undeclared Identifier
evilcry <evilcrygmailcom> Sunday, October 8 2006 05:06.08 CDT


Yesterday, i tried to use OpenSCManager() and the other common CreateService(), but VS compiler refuses to compile, the
reason was Undeclared Identifier: , but all headers were ok.

Thanks to a little discovery, i finally builded my application, here i'll share this, because could help in a variety of similar problems, when using not many common APIs on MFC.

Into stdafx.h there is:

#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers


by clearing this line, all not common functio prototipes will be working :)

See you to the next post




Comments
Posted: Wednesday, December 31 1969 18:00.00 CST