Im trying to compile a win32 program in unicode with cygwin but I keep getting the error:
window.cpp: In function 'void MsgBox(const wchar_t*, const wcharCode:void MsgBox(const wchar_t *message, const wchar_t *title, int flags) { MessageBox(m_hwnd, message, title, flags); }
_t*, int)':
window.cpp:52: error: cannot convert 'const wchar_t*' to 'const CHAR*' for a
rgument '2' to 'int MessageBoxA(HWND__*, const CHAR*, const CHAR*, UINT)'
apparently it's trying to compile the char versions, but I did specify
CFLAGS="-DUNICODE -D_UNICODE"
CXXFLAGS="-DUNICODE -D_UNICODE"
in the makefile.
What else do I need to do to get the widechar versions?



LinkBack URL
About LinkBacks


