🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
MSVC 2005
i m getting error while using messagebox
error C2664: 'CWnd::MessageBoxA' : cannot convert parameter 1 from 'const wchar_t [14]' to 'LPCTSTR'
pls solve it
Or, if you must use a wide-character string call MessageBoxW() instead of MessageBoxA(). Plain old MessageBox() (without the A or W) is actually a macro that is defined as one of the previous 2 functions depending on if UNICODE is defined or not, so in your case UNICODE isn't defined (can be set in project options -> general -> character set) and is calling MessageBoxA().
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement