Вот такой код: Код (Text): .386 .model flat,stdcall option casemap:none include ..\include\windows.inc include ..\include\user32.inc include ..\include\kernel32.inc includelib kernel32.lib includelib user32.lib ;includelib windows.lib WinMain proto :DWORD,:DWORD,:DWORD,:DWORD .data ClassName db "nmnwnd",0 AppName db "nmnApp",0 ErrMsg db "Îøèáêà âûïîëíåíèÿ ïðîãðàììû",0 .DATA? hInstance HINSTANCE ? CommandLine LPSTR ? .CODE start: invoke GetModuleHandle, NULL mov hInstance,eax invoke GetCommandLine mov CommandLine, eax invoke WinMain, hInstance, NULL,CommandLine, SW_SHOWDEFAULT invoke ExitProcess, eax WinMain proc hInst:HINSTANCE,hPrevInst:HINSTANCE,CmdLine:LPSTR,CmdShow:DWORD LOCAL wc:WNDCLASSEX LOCAL msg:MSG LOCAL hwnd:HWND mov wc.cbSize, SIZEOF WNDCLASSEX mov wc.style, CS_HREDRAW or CS_VREDRAW mov wc.lpfnWndProc, offset WndProc mov wc.cbClsExtra,NULL mov wc.cbWndExtra,NULL push hInstance pop wc.hInstance mov wc.hbrBackground,COLOR_WINDOW+1 mov wc.lpszMenuName,NULL mov wc.lpszClassName,offset ClassName invoke LoadIcon, NULL,IDI_APPLICATION mov wc.hIcon,eax mov wc.hIconSm,eax invoke LoadCursor, NULL,IDC_ARROW mov wc.hCursor,eax invoke RegisterClassEx, addr wc invoke CreateWindowEx, NULL,\ addr ClassName,\ addr AppName,\ WS_OVERLAPPEDWINDOW,\ CW_USEDEFAULT,\;x CW_USEDEFAULT,\;y CW_USEDEFAULT,\;width CW_USEDEFAULT,\;height NULL,\ NULL,\ hInst,\ NULL .if(eax) mov hwnd,eax invoke ShowWindow, hwnd, SW_SHOW invoke UpdateWindow, hwnd .WHILE TRUE invoke GetMessage, addr msg, NULL,0,0 .BREAK .IF(!eax) invoke TranslateMessage, addr msg invoke DispatchMessage, addr msg .ENDW .else invoke MessageBox, NULL, addr ErrMsg, addr AppName, MB_OK ret .endif mov eax,msg.wParam ret WinMain endp WndProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM .if (uMsg==WM_DESTROY) invoke PostQuitMessage, NULL .else invoke DefWindowProc, hWnd,uMsg,lParam,wParam ret .endif xor eax,eax ret WndProc endp end start Почему-то не создается окно. Объясните почему пожалуйста.