I am taking my first steps in learning to use winAPI and am following a tutorial. I have run into problems because my strings are coming out as Chinese rather than English. (Note I am currently located in China, though my location as specified in the regional and language options in the windows XP control panel is Australia.) For example, "The title of my window" comes out in Chinese.
I can change the language of the message boxes to English by simply using MessageBoxA. I have been trying to do something similar with CreateWindowExA and RegisterClassExA but to no avail. And even if I could succeed this would seem to only be treating the symptom! If I get to creative and start type changing, my compiler (Visual C++, 2008 Express Edition) complains that it cannot convert g_szClassName to the required type when it is referenced in the registration of the window class.
Can someone explain how to use unicode but get English (and preferably explain why I am not getting English!).
Or as a second best - could someone explain how to use CreateWindowExA etc to avoid the problem and let me continue learning without being frustrated by my text coming out in Chinese...
// Step 2: Creating the Window
hwnd = CreateWindowEx(
WS_EX_CLIENTEDGE,
g_szClassName,
"The title of my window",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
NULL, NULL, hInstance, NULL);