GUID_NULL Error

  • Thread starter Thread starter Michael Tissington
  • Start date Start date
M

Michael Tissington

I'm converting a VS 6 MFC C++ project to VS 2005 C++
I'm done to a single error to do with GUID_NULL not being defined

This error occures in a single cpp file which uses #define INITGUID

Any ideas where GUID_NULL should be defined or an include file that I'm
missing?

Thanks.
 
Hi Michael,
I'm converting a VS 6 MFC C++ project to VS 2005 C++
I'm done to a single error to do with GUID_NULL not being defined

The VC2005 doesn't use the libraries which VC6's application used, so the
problem may be the GUID_NULL hasn't been defined in the corresponding
VC2005's library files.

I found the following GUID_NULL definition in the VC6's library files KS.h:

#define DEFINE_GUIDSTRUCT(g, n) struct __declspec(uuid(g)) n
#define DEFINE_GUIDNAMED(n) n

DEFINE_GUIDSTRUCT("00000000-0000-0000-0000-000000000000", GUID_NULL);
#define GUID_NULL DEFINE_GUIDNAMED(GUID_NULL)


Hope this helps!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top