Original Post
I have to questien.
1. I have start programing c++ with windows platform and I am wondring what HINSTANCE is.
2. The second thing I am wondring is why my program jumps out as son as I use any menu. Here is the code:
case WM_COMMAND:
switch(LOWORD(wParam))
{
case ID_STUFF_GO:
MessageBox(NULL, "Go where?", "Go", MB_OK);
break;
case ID_HELP_ABOUT:
MessageBox(NULL, "This program was made by Jonatan Tingström", "About", MB_OK);
break;
case ID_FILE_EXIT:
PostMessage(hwnd, WM_CLOSE, 0, 0);
break;
}
I know why the exit jumps out but why does About and GO do it??
Mullvad