当前位置: 代码迷 >> Windows Mobile >> EVC升级到VS2005遇到的有关问题
  详细解决方案

EVC升级到VS2005遇到的有关问题

热度:1240   发布时间:2013-02-26 00:00:00.0
EVC升级到VS2005遇到的问题
大家好,我又来问问题了。我现在在弄EVC程序升级到VS2005,遇到了相当多的问题。想请教一下在升级过程中遇到了一下问题,重复出现:
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\afximpl.h(541) : error C2059: syntax error : '<L_TYPE_raw>'
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\afximpl.h(541) : error C2238: unexpected token(s) preceding ';'
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\afximpl.h(582) : error C2061: syntax error : identifier 'NCCALCSIZE_PARAMS'
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\afximpl.h(651) : error C2061: syntax error : identifier 'NCCALCSIZE_PARAMS'
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(25) : error C2061: syntax error : identifier 'COleClientItem'
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(33) : error C2143: syntax error : missing ';' before '*'
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(92) : error C2433: 'COleClientItem' : 'friend' not permitted on data declarations
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(92) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(217) : error C2143: syntax error : missing ';' before '*'
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(217) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\oleimpl2.h(217) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\report\GridCtrl_src/GridCtrl.h(592) : error C2061: syntax error : identifier 'CPrintInfo'
1>d:\report\GridCtrl_src/GridCtrl.h(968) : error C2061: syntax error : identifier 'CPrintInfo'
1>d:\report\realreportdlg.h(60) : error C2061: syntax error : identifier 'HELPINFO'
应该怎么解决啊。高手指点一下,在线等。

------解决方案--------------------------------------------------------
先说下,本人没有EVC转换到VS的经验,以下仅供参考吧。

建议将EVC下的afximpl.h和oleimpl2.h文件和VS2005下的做比较,找出差异,再想办法解决。
后面三个问题是CPrintInfo和HELPINFO声明的问题,找下这两个结构的声明。

也不知道能帮上点儿忙不,希望别越帮越忙。
------解决方案--------------------------------------------------------
说不定只是一个很小的地方,像default-int 这样的,改改试试先~~~
我转的工程没有遇到这样的问题,只是for循环中变量这样的~~~
------解决方案--------------------------------------------------------
up
------解决方案--------------------------------------------------------
把出错定位到代码的地方,贴出来,让大家帮你看看
------解决方案--------------------------------------------------------
最好是新建一个相同的工程,文件复制,evc到vc2005变化太大,语法要求也变了些,你解决升级的时间,还不如从新开工程
------解决方案--------------------------------------------------------
#ifndef _WIN32_WCE // OLE
才有COleClientItem 啊~~~
------解决方案--------------------------------------------------------
顶一下!
  相关解决方案