本文介绍了将.net 2002项目转换为.net 2003环境,存在一些困惑的错误!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,任何人!

Hello,anyone!

当我在.net 2003中构建.net2002 DLL项目时,某些xxx_c,c文件中存在一些令人困惑的错误;

When I build .net2002 DLL project in .net 2003 there are some puzzled errors in some xxx_c,c files;

#if!(TARGET_IS_NT50_OR_LATER)
#error您需要Windows 2000或更高版本才能运行此存根,因为它使用了以下功能: /robust命令行开关.
#error但是,您的C/C ++编译标志指示您打算在较早的系统上运行此应用程序.
#error该应用程序将在此死于RPC_X_WRONG_STUB_VERSION错误.
#endif

#if !(TARGET_IS_NT50_OR_LATER)
#error You need a Windows 2000 or later to run this stub because it uses these features:
#error   /robust command line switch.
#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
#error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
#endif

如果我在MIDL命令行中添加"/no_robust/app_config",则错误更改为

if I add " /no_robust /app_config" to MIDL command line , the error change to

#if!(TARGET_IS_NT40_OR_LATER)
#error您需要Windows NT 4.0或更高版本才能运行此存根,因为它使用了以下功能: -Oif或-Oicf.
#error但是,您的C/C ++编译标志指示您打算在较早的系统上运行此应用程序.
#error该应用程序将在此死于RPC_X_WRONG_STUB_VERSION错误.
#endif

#if !(TARGET_IS_NT40_OR_LATER)
#error You need a Windows NT 4.0 or later to run this stub because it uses these features:
#error   -Oif or -Oicf.
#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
#error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
#endif

我的操作系统是XP sp2,我不知道该怎么办,请问有人可以帮助我!谢谢

My OS is XP sp2,I have on idea what can i do ,Would anyone help me! thanks

推荐答案

-D_WIN32_WINNT=0x500

should solve the problem.


这篇关于将.net 2002项目转换为.net 2003环境,存在一些困惑的错误!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 01:05