http://msdn.microsoft.com/vstudio/sp/">
The information in this article applies to:
SYMPTOMSTrying to build a non-Unicode configuration of Dao36x.dll using the Dao3.6 SDK provided with Visual Studio 6.0 Service Pack 3 causes the following compiler error: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast, or function-style cast. CAUSEThis error references Dbdao.cpp, line 2353:
The member variable LPSTR is defined in Daogetrw.h, line 72, as type LPCSTR; whereas, pstr is defined in Dbdao.h, line 85, as type LPCWSTR.The compiler can't convert type LPCWSTR to type LPCSTR as attempted on line 2353 of Dbdao.cpp, causing the above error to be generated. RESOLUTION
To prevent the error, you need to make the following modification to line 91 in Dbdao.h:
with the following:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce:
Additional query words: kbDatabase kbdbDao kbVCdb
Keywords : kbDatabase kbSDKDAO kbGrpVCDB |
Last Reviewed: June 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |