Thread: win32 Hello word program - Chinese characters printed

  1. #1
    Registered User Sharke's Avatar
    Join Date
    Jun 2008
    Location
    NYC
    Posts
    303

    win32 Hello word program - Chinese characters printed

    Just out of interest I compiled a simple message box example from a Win32 tutorial. It works, but the message is printed in Chinese when I run it. Can anyone tell me why this could be happening? Is it something to do with Unicode?

    Code:
    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
        LPSTR lpCmdLine, int nCmdShow)
    {
        MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
        return 0;
    }
    Last edited by Sharke; 03-21-2009 at 02:26 AM.

  2. #2
    Registered User Sharke's Avatar
    Join Date
    Jun 2008
    Location
    NYC
    Posts
    303
    Oops...found the solution, the character set was set to Unicode in the configuration properties of Visual C++

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help me out Unrgent wit a cross word program
    By rags in forum C Programming
    Replies: 4
    Last Post: 05-14-2008, 11:12 AM
  2. please help with binary tree, urgent.
    By slickestting in forum C Programming
    Replies: 2
    Last Post: 07-22-2007, 07:55 PM
  3. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  4. Yucky Homework Help, pweese
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 10-17-2001, 12:02 AM
  5. How To Convert A Dos-Prompt C++ PRogram Into Win32 Application ?
    By SonicWave in forum Windows Programming
    Replies: 1
    Last Post: 09-15-2001, 11:03 AM