This is how I created my window. I’m creating it in ASCII, the title showed is random characters.
I’m using cygwin in windows. this code works totally fine with virtual studio 2010. with CreatWindow without A. However, I cannot compile CreateWindow here.
What I have tried:
change 1 to static wchar_t szTitle[] = L"Getting…"
change 1 to static wchar_t szTitle[] = _T(str)
change 2 to L"Getting…"
change 2 to _T(str)
static char szAppName[] = “OpenGL”;
- static char szTitle[]=“Getting Started With OpenGL”;
hWnd = CreateWindowA(
szAppName, // app name
2. szTitle, // Text for window title bar
WS_OVERLAPPEDWINDOW// Window style
// NEED THESE for OpenGL calls to work!
| WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
left, top, width, height,
NULL, // no parent window
NULL, // Use the window class menu.
m_hInstance,// This instance owns this window
NULL // We don’t use any extra data
);