Computer/Borland C++
CodeGear C++ Builder 2009 - Cannot convert 'WideString' to 'wchar_t *' 문제해결
Y.Hyun
2009. 6. 24. 13:19
C++ Builder 6에서 쓰던 소스를 CodeGear C++ Builder 2009 에서 돌리니
Cannot convert 'WideString' to 'wchar_t *' 에러가 주루루룩~
무엇때문인지는 확실히 모르지만 암튼 해결방법은
WideString 대신 StringToOleStr 를 사용하면 된다는것 ㅡㅡv
도움말의 Description을 보면 다음과 같다. (뭐, 바도 모르겠지만 -_-;)
StringToOleStr allocates memory and copies string data from a native AnsiString into a format that can be passed to OLE functions.
Cannot convert 'WideString' to 'wchar_t *' 에러가 주루루룩~
무엇때문인지는 확실히 모르지만 암튼 해결방법은
WideString 대신 StringToOleStr 를 사용하면 된다는것 ㅡㅡv
도움말의 Description을 보면 다음과 같다. (뭐, 바도 모르겠지만 -_-;)
StringToOleStr allocates memory and copies string data from a native AnsiString into a format that can be passed to OLE functions.