程序结束错误 ,怎么会unexpected end of file while looking for precompiled hea
#define MYICON1 101#define IDR_MENU1 102
#define MYICON2 106
#define ID_MENUTTEM4001 4001
#define ID_FENUTTEM4002 4002
#ifdef APSTUDIO_INVOKED
#ifndef ASPTUDIO_READONLY_SYMBOLS
#define _ASP_NEXT_RESOURCE_VALUE 107
#define _ASP_NEXT_COMMAND_VALUE 40003
#define _ASP_NEXT_CONTROL_VALUE 1000
#define _ASP_NEXT_SYMED_VALUE 101
#endif
#endif
#include<windows.h>
#include <resource.h>
LRESULT CALLBACK WndProc(HWND, UNIT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hinstance,HINSTANCE hPrevInstance ,LPSTR lpCmdLine ,int nShowCmd)
{
static char szAppName[]="love me";
HWND hwnd;
MSG msg ;
WNDCLASSEX wndclass;
wndclass.cbClsExtra =0;
wndclass.cbSize =sizeof(wndclass);
wndclass.cbWndExtra =0;
wndclass.hbrBackground =(HBRUSH)GetStockObject(WHITE_BRUSH);
wndclass.hCursor =LoadCursor(NULL,IDC_ARRROW);
wndclass.hIcon = LoadIcon(hInstance,MAKEINTTRESOURCE(MYICON2));
wndclass.hIconSm =LoadIcon(NULL,"icon1");
wndclass.hInstance =hInstance;
wndclass.lpfnWndProc =WndProc;
wndclass.lpszClassName =szAppName;
wndclass.lpszMenuName =MAKEINTRESOURCE(IDR_MENU1) //窗口无菜蛋
wndclass.style =CS_HREDRAW|CS_VREDRAW;
if(!RegisterClassEx(&wndclass))
{ MessageBeep(0); return FALSE ;}
hwnd=CreateWindow(szAppName,"开心快乐",WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
NULL,NULL,hInstance,NULL);
ShowWindow(hwnd,iCmdShow);
UpdateWindow(hwnd);
while(GetMessage(&msg,hwnd,0,0)
{ TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
LRESULT CALLBACK WndProc(HWND hwnd,UINT iMsg,WPARAM wParam,LPARAM lParam)
{
switch(iMsg)
{
case WM_DESTROY:
PostQuitMessage(0);
return 0;
}
return DefWindowProc(hwnd,iMsg,wParam,lParam);
}
错误是:e:\vc\msdev98\myprojects\oo\ooo.cpp(57) : fatal error C1010: unexpected end of file while looking for precompiled header directive
请大家指点!!!
谢谢