Yeah. And if not, a really easy way to debug, although it's not really as effective in some cases, is to simply install some Message Boxes at certain points and give them meaningful text. You're using theForgers tutorial, so there should be a piece of code after your window registration that looks something like this.
Code:
if(!RegisterWindowClass(&wc))
{
MessageBox(hwnd, "Window class registration failed.", "Error:", MB_ICONERROR | MB_OK);
}
This means that if something fails in your registration, a messsage box will appear to tell you so. A good way to debug this would be to add in an else.
Code:
if(!RegisterWindowClass(&wc))
{
MessageBox(hwnd, "Window class registration failed.", "Error:", MB_ICONERROR | MB_OK);
}
else
{
MessageBox(hwnd, "Window class registration successful.", "Debug:", MB_ICONINFORMATION | MB_OK);
}
If a message box never appears, it could be a sign that your project isn't compiling after all. But to really test this, you would do this.
Code:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int CmdShow)
{
MessageBox(NULL, "Program beginning...", "Debug:", MB_ICONINFORMATION | MB_OK);
//Rest of code.....
If you never get a message box, either you can't argue NULL to a Message Box like I did, which you should be able to, or you program isn't compiling, or it isn't running.