The information in this article applies to:
SYMPTOMSWhen using the #import directive on a type library with a method containing a GUID as a parameter, or methods containing a structure that contains a GUID as a parameter, you might encounter one of the following error messages:
You might also encounter one of these error messages when you use parameters of type IID, CLSID, FMTID, UUID, CATID, and references to these types (REFGUID, REFIID, etc.). CAUSEThe #import statement incorrectly interprets struct _GUID as struct GUID. GUID is only a typedef for struct _GUID. RESOLUTIONUse the "rename" attribute with #import to replace the string GUID with _GUID. For example:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Microsoft Visual C++, version 6.0. REFERENCES
Microsoft Visual C++ Help: search on "#import" Additional query words: kbVC500bug kbCompiler kbCOMt kbDSupport kbdsd
Keywords : kberrmsg kbVC600fix |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |