求教:VC到EVC程序的移植

lcx369 2007-04-29 01:13:47
小弟初学WinCE,想把VC下的程序移植到EVC下,调试时出现如下错误,还请大侠们多指点,先谢过了!
错误:
d:\program files\windows ce tools\wce500\standardsdk_500\mfc\include\afxdisp.h(73) : fatal error C1189: #error : "Can't build MFC OLE projects using static MFC libraries."
DIBAPI.CPP
d:\program files\windows ce tools\wce500\standardsdk_500\mfc\include\afxdisp.h(73) : fatal error C1189: #error : "Can't build MFC OLE projects using static MFC libraries."
DigitRec.cpp
d:\program files\windows ce tools\wce500\standardsdk_500\mfc\include\afxdisp.h(73) : fatal error C1189: #error : "Can't build MFC OLE projects using static MFC libraries."
Error executing clarm.exe.

但是我把文件afxdisp.h中的#ifdef _AFXDLL。。。注释掉后在调试就会如下错误:
d:\ocr\ocr\mydiblib.h(2) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory
DIBAPI.CPP
D:\OCR\ocr\DIBAPI.CPP(23) : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
DigitRec.cpp
D:\OCR\ocr\DigitRec.cpp(53) : error C2065: 'Enable3dControlsStatic' : undeclared identifier
Error executing clarm.exe.
这是一头雾水
...全文
1521 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
jianqiaochen 2010-04-11
  • 打赏
  • 举报
回复
我遇到的问题:
frame.y(7) : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
怎么解决呢?谢谢
zhuyiwu 2008-12-08
  • 打赏
  • 举报
回复
但是动态编译的程序,很可能在目标板上无法执行,目标板的操作系统经过裁剪了,怎样让它在静态编译时也能通过呢?
kingmax54212008 2008-05-08
  • 打赏
  • 举报
回复
关注一下~~
11
luludu86 2008-05-06
  • 打赏
  • 举报
回复
关注一下
我也有同样的问题
zygod625 2008-05-05
  • 打赏
  • 举报
回复
我现在也在移植~~
关注一下~~
luludu86 2008-05-04
  • 打赏
  • 举报
回复
在project> setting中的选项卡 选择“use mfc with share dll”后
出现了下面的错误,该怎么解决???
#error DAO Database classes not supported in this library variant.
ghmnjtu 2008-03-21
  • 打赏
  • 举报
回复
请教楼主,你的VC程序是怎么用EVC打开的?我怎么打不开啊,更别说调试错误了。谢谢!
lcx369 2007-05-14
  • 打赏
  • 举报
回复
多谢大家的关注

多谢 suncilang(),用你的方法调过去了
King_ce2005 2007-05-09
  • 打赏
  • 举报
回复
2005可以支持iostream,evc好像不支持
ninesuns02 2007-05-09
  • 打赏
  • 举报
回复
关注中!
hoozh 2007-05-08
  • 打赏
  • 举报
回复
我遇到了类似的错误,关注一下
在某个头文件里加入一下几行就通不过编译

#include <string>
#include <vector>
#include <iostream>

using namespace std;

错误是:
Compiling...
tmp.cpp
E:\projects\wince\CIniDemo\tmp.h(14) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory
Error executing cl.exe.

tmp.obj - 1 error(s), 0 warning(s)
suncilang 2007-05-01
  • 打赏
  • 举报
回复
不用去掉,去掉会出错,在project>setting中的选项卡中有个 no using mfc,你选成 use mfc with share dll,仔细找
kakashi0309 2007-04-29
  • 打赏
  • 举报
回复
用WTL没有
Genejiang 2007-04-29
  • 打赏
  • 举报
回复
MSDN上有相应的文章,搜一下吧。

19,500

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧