partha7817
26th May 2015, 22:09
I was compiling a basic GUI application written in C language meant to run on windows 7 using qt creator using mingw platform the code is :
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
return 0;
}
the compiler warnings relate to unused parameter "hInstance" but it runs ok, but the sentence "Goodbye, cruel world!" is being displayed as chinese
11175
what may be the problem and how to rectify? pls help
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
return 0;
}
the compiler warnings relate to unused parameter "hInstance" but it runs ok, but the sentence "Goodbye, cruel world!" is being displayed as chinese
11175
what may be the problem and how to rectify? pls help