Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

wat

Name: Anonymous 2009-02-19 15:36

I compile the following code in Microsoft Visual Studio 2008:

#include <windows.h>

int WINAPI
WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, int nCmdShow)
{
    MessageBox(NULL, "Hello World", "Notes!", MB_OK);
    return 0;
}

And the output is in some crazy moon runes that I don't understand (east-asian characters), rather than the plain "Hello World" I was expecting. What gives?

Name: Anonymous 2009-02-19 15:39

You are compiling with unicode support and Windows interprets your ASCII string as an UTF-16 string.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List