| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1875 人关注过本帖
标题:程序结束错误 ,怎么会unexpected end of file while looking for precompi ...
只看楼主 加入收藏
sailer
Rank: 1
等 级:新手上路
帖 子:69
专家分:0
注 册:2005-10-12
收藏
 问题点数:0 回复次数:1 
程序结束错误 ,怎么会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
请大家指点!!!
谢谢
搜索更多相关主题的帖子: define unexpected precompiled looking hea 
2006-04-02 12:58
myajax95
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:30
帖 子:2978
专家分:0
注 册:2006-3-5
收藏
得分:0 
顶上写句include "stdafx.h"试试。

http://myajax95./
2006-04-03 14:16
快速回复:程序结束错误 ,怎么会unexpected end of file while looking for pre ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.064520 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved