您的位置:首页 > 其它

【转】EVC学习过程中遇到的错误以及解决办法总结

2009-12-27 06:48 851 查看

EVC学习过程中遇到的错误以及解决办法总结

1.错误:Microsoft eMbedded Visual C++ has discovered no CE platform SDK installed on the desktop please install at least one CE platform SDK before launching Microsoft eMbedded Vidual C++.

原因:SDK脚本被阻止未注册

解决方法:设置防火墙或者杀毒软件,注册Platman.install.vbs

2.错误:在4.0版本编译3.0版本程序时,出现corelibc.lib(pegwmain.obj) : error LNK2019……

原因:

1) 可能是eVC3代码升级到eVC4中编译。2) 或者创建工程时,没有选择正确的工程类型。3)入口有问题。

解决方法:

Project --> Settings... -->Link --> Category选Output --> Entry-point symbol

-->把WinMainCRTStartup改成wWinMainCRTStartup 或者 _DllMainCRTStartup

再编译,就OK了。

3.错误:Emulator for Windows CE one or more files from the Emulator foe windows CE installation is missing.Please reinstall Emulator foe Windows CE and try again.

解决方法:1)重装SDK。2)用pb定制一个自己的SDK。3)我的电脑-->属性-->高级-->启动和故障恢复-->设置-->编辑-->在跳出窗口-->boot表改noexeculte为execulte-->重启电脑。

4.错误:1)can't open include 'winver.h' 2)cannot open include file 'aygshell.h' 3)the platform manager sever faild 4)Failed to cannect to the device

原因:可能配置错误,cpu类型不匹配

解决:WCE配置Test SDK | Pocker PC 2003 | Win32[emulator]Release Debug | Pocket PC 2003 Emulator Rebuild All

5.错误:Cannot open precompiled header file "*.pch

分析:This error results from a missing file the compiled versin of StdAfx.cpp,Visual C++ does a poor job of keeping track of this file and frequently "forget" how to build it. This problem often occours after restoring a saved workspace from diskette without the Debug directory.To fix the error select StdAfx.cpp from the workspace file list the choose. Compile from the Build menu. If that doesnot work the go to project-setting select the C/C++ tab,and click the radio button labeled create Precompiled Headers.(重建project或者看红线)

6.错误:member functions 上看不到函数

解决:关掉工程,删除*.vco *.vcb *.asp *.clw *.ncb文件,重新打开工程编译。

7.如何让类在workspace显示,在头文件中修改该类的名字然后再改回来。

8.错误:vc60.pdb is not found project setting 的pre-link step 被误删

9.ctrl+alt+del打不开任务管理器。电脑中毒,1)运行-->gpedit.msc-->系统-->“阻止访问注册表编辑工具”-->禁用 2)运行-->regedit --> HKE_LOCAL_MACHINE\SOFTWORE\Microsoft\Windows\CurrentVersion\Run-->删除异常进程启动项-->重启-->启动杀软。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐