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 16:30

>>9
I have no idea, but apparently that wasn't necessary in my case. I may have accidentally told visual studio somewhere that I wanted unicode support in projects I create myself, and it proceeded to add it in for me (in my case, all it really did was add a few lines to the compilers' commandline options).

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