SQLGetInstalledDrivers 에러
글쓴이: stress97 / 작성시간: 금, 2007/07/20 - 4:50오후
char szBuf[2001];
WORD cbBufMax = 2000;
WORD cbBufOut;
SQLGetInstalledDrivers(szBuf,cbBufMax,& cbBufOut)
이 함수를 실행하면
error C2664: 'SQLGetInstalledDriversW' : cannot convert parameter 1 from 'char [2001]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
이런 메세지가 뜹니다.
잘 안되네요.. 왜 그런지 잘 모르겠네요.. 알려주세요..
Forums:
컴파일 옵션은
컴파일 옵션은 UNICODE인데 char 문자열을 사용해서 그렇습니다.
옵션을 바꾸든지 wchar_t 문자열을 사용하셔야 합니다.
댓글 달기