This is weird

It runs and works fine, but it closes the application, how do I fix that?


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

case WM_COMMAND:
{
    switch( LOWORD(wParam) )
    {
        case Men1Button1:
            {
        MODE = "CMD Mode";
        std::cout << MODE << std::endl;
        SetWindowText(nurb, TEXT("Command Prompt Text-Based has been chosen"));

        HWND nubben11 = CreateWindow(TEXT("STATIC"), TEXT("Now select play to play your game in your selected type."), WS_VISIBLE | WS_CHILD,
                     80,120,400,25, hwnd, (HMENU)NULL, NULL, NULL);

        static HBRUSH brus1 = NULL;
        break;
            }
        case Men1Button2:
            {
        MODE = "Windows Mode(SGB)";
        SetWindowText(nurb, TEXT("Windows Mode Semi-Graphics-Based has been chosen"));
            break;
            }
           case Men1Button3:
           {
           MODE = "Windows Mode(TB)";
           std::cout << MODE << std::endl;
           break;
           }
           case Men1Button4:
            {
            MODE = "2D Mode";
            std::cout << MODE << std::endl;
            break;
            }
           case Men1Button5:
            {
            MODE = "3D Mode";
            std::cout << MODE << std::endl;
            break;
            }
    }
}
Nevermind Fixed It.
Topic archived. No new replies allowed.