MessageBox(0, "First Win32 Program.", "Window Title", MB_OK);And as the WinUser.h file says, that's just a typedef for either MessageBoxW or MessageBoxA, depending on if your project is set to use Unicode(It's MessageBoxW when it's unicode).
Now the sample code above does not compile when the project is set to use Unicode. That means that the code below will not run:
MessageBoxW(0, "First Win32 Program.", "Window Title", MB_OK);But this next code does:
MessageBoxA(0, "First Win32 Program.", "Window Title", MB_OK);
The problem supposedly lies with the second parameter, "First Win32 Program.". Now the question I have is, how do I fix this problem if I want to continue using Unicode? And if possible, perhaps an explanation of why this does not work.
Thanks in advance.


Sign In
Create Account


Back to top









