I am quite new to GLFW and I just wanted to know how my code was going right. I used Win32 API because I don't like console pop up in my program. I set my error callback as below:
static void glfwError(int id, const char* description)
{
MessageBox(NULL, (LPCWSTR)description, L"Error", MB_OK);
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
glfwSetErrorCallback(&glfwError);
}
The problem is, it did show Chinese however hard I tried. Can anyone help me???