Программа для вывода окна графического интерфейса. При компиляции(Visual Studio 2005) отказывается воспринимать NULL как константу. Код - http://paste.org.ru/?f15yyo Ошибки(и версия компилятора): Код(еще раз): Код (Text): #include <stdio.h> #include <windows.h> #include <winuser.h> //#define new_NULL 0 //пробовал переопределить нуль вручную - ноль реакции HINSTANCE hinst; int hwndMain; // Create the main window. hwndMain = CreateWindowEx( 0, // no extended styles "MainWClass", // class name "Main Window", // window name WS_OVERLAPPEDWINDOW | // overlapped window WS_HSCROLL | // horizontal scroll bar WS_VSCROLL, // vertical scroll bar CW_USEDEFAULT, // default horizontal position CW_USEDEFAULT, // default vertical position CW_USEDEFAULT, // default width CW_USEDEFAULT, // default height (HWND) NULL, // no parent or owner window (HMENU) NULL, // class menu used hinst, // instance handle NULL); // no window creation data - в этой строке первая из ошибок if (!hwndMain) return FALSE; // Show the window using the flag specified by the program // that started the application, and send the application // a WM_PAINT message. ShowWindow(hwndMain, SW_SHOWDEFAULT); UpdateWindow(hwndMain);