Can someone help me fix my code? I know, it's a stupid question, but from articles and stuff from msdn, I don't quite understand them, and I learn better if someone just tells me how to use it since then I can actually get response back instead of reading a article with my head up my ass...Code:#define WIN32_LEAN_AND_MEAN #define BTN_SUBMIT 100 #include "..\Header\GUI.h" HINSTANCE g_hInst; LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine,int nCmdShow) { MSG Msg; HWND hwnd; WNDCLASSEX wincl; g_hInst=hInstance; TCHAR chClassName[]="SecuritySuite"; wincl.cbClsExtra=0; wincl.cbWndExtra=0; wincl.style=CS_HREDRAW|CS_VREDRAW|BN_CLICKED; wincl.lpszMenuName=NULL; wincl.hInstance=hInstance; wincl.lpszClassName=chClassName; wincl.cbSize=sizeof(WNDCLASSEX); wincl.lpfnWndProc=(WNDPROC)WndProc; wincl.hCursor=LoadCursor(NULL,IDC_ARROW); wincl.hIcon=LoadIcon(NULL,IDI_APPLICATION); wincl.hIconSm=LoadIcon(NULL,IDI_APPLICATION); wincl.hbrBackground=(HBRUSH)(COLOR_WINDOW+1); if(!RegisterClassEx(&wincl)) { MessageBox(0,"Error while registering window","Error",MB_ICONSTOP|MB_OK); return 0; } hwnd=CreateWindowEx(0,chClassName,"Security Suite",WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,CW_USEDEFAULT,330,240,HWND_DESKTOP,NULL, hInstance,NULL); if(hwnd==NULL) { MessageBox(0,"Error while creating window","Error",MB_ICONSTOP|MB_OK); return 0; } ShowWindow(hwnd,nCmdShow); UpdateWindow(hwnd); while(GetMessage(&Msg,NULL,0,0)) { TranslateMessage(&Msg); DispatchMessage(&Msg); } return Msg.wParam; } LRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam) { HINSTANCE g_hInst; HINSTANCE hInstance; g_hInst=hInstance; TCHAR chClassName[]="SecuritySuite"; HDC hdc; PAINTSTRUCT ps; TCHAR chTxt[32]; HWND hButton1,hCombo,hButton2,hCombo2; LPSTR Greeting,Question,Drive,Option,ChooseDrive; Drive="Drive:"; Option="Option:"; Greeting="Welcome to C.J.'s SecuritySuite!"; Question="Please select what you want to do."; ChooseDrive="Please choose drive."; switch(msg) { case WM_CREATE: hCombo=CreateWindowEx(NULL,"COMBOBOX","Options", WS_CHILD|WS_VISIBLE|CBS_DROPDOWNLIST, 60,120,180,100,hwnd,NULL,g_hInst,NULL); lstrcpy(chTxt,"Secure Disk Wipe"); SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)chTxt); lstrcpy(chTxt,"Secure File Deletion"); SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)chTxt); lstrcpy(chTxt,"Secure Disk Cleanse"); SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)chTxt); hButton1=CreateWindowEx(NULL,"BUTTON","Submit", WS_BORDER|WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, 250,120,60,25,hwnd,(HMENU)BTN_SUBMIT,g_hInst,NULL); SendMessage(hButton1,0/*WM_SDASD*/,(WPARAM)BN_CLICKED,0); break; case WM_COMMAND: if(HIWORD(wParam)==BN_CLICKED) { HWND hwnd2; hwnd2=CreateWindowEx(0,chClassName,"Drive Options",WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,CW_USEDEFAULT,330,240,HWND_DESKTOP,NULL, hInstance,NULL); switch(msg) HWND hCombo2,hButton2; case WM_CREATE: hCombo2=CreateWindowEx(NULL,"COMBOBOX","DiskChoice", WS_CHILD|WS_VISIBLE|CBS_DROPDOWNLIST,60,120,180,100, hwnd2,NULL,g_hInst,NULL); lstrcpy(chTxt,"A:\\"); SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)chTxt); lstrcpy(chTxt,"C:\\"); SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)chTxt); lstrcpy(chTxt,"D:\\"); SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)chTxt); hButton2=CreateWindowEx(0,chClassName,"BUTTON","Submit" WS_BORDER|WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, 250,120,60,25,hwnd2,(HMENU)BTN_SUBMIT,g_hInst,NULL); break; } case WM_PAINT: hdc=BeginPaint(hwnd,&ps); TextOut(hdc,53,20,Greeting,strlen(Greeting)); TextOut(hdc,49,40,Question,strlen(Question)); TextOut(hdc,10,120,Option,strlen(Option)); EndPaint(hwnd,&ps); break; case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage (0); break; default: return DefWindowProc(hwnd,msg,wParam,lParam); } return 0; }