Archive for the 'VC' Category

VC++ 2005 Unicode

August 5, 2006

VC++ 2005 기본적으로 Unicode Character Set 을 사용한다 그래서 다음과 같은 에러가…

error C2664: ‘MessageBoxW’ : cannot convert parameter 2 from ‘const char [23]‘ to ‘LPCWSTR’
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

이건 Project Properties->Configuration Properties->General 에서 Character Set 을 Not Set 으로 바꾸면 해결된다.