| 
 The information in this article applies to: 
 SYMPTOMSUnresolved external errors may occur when you compile with a default calling convention of __fastcall (/Gr) or __stdcall (/Gz) and call ConvertStringToBSTR or ConvertBSTRToString. CAUSEThe prototypes are missing the __cdecl calling convention, which is the calling convention of these functions in comsupp.lib. RESOLUTIONBuild with __cdecl as the default calling convention. Do not build with __fastcall or __stdcall as the default calling convention. STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been corrected in Visual
Studio 97 Service Pack 1. Q170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why MORE INFORMATIONSample CodeThe following linker errors occur when you compile this sample code:
 
 Additional query words: LNK2001 
Keywords          : kbcode kbVC500bug kbVS97sp1fix  | 
| Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |