使用Visual Studio 2005构建Windows NT 4.0? [英] Build for Windows NT 4.0 using Visual Studio 2005?
问题描述
我想要迁移的MFC应用程序使用 afxext.h
,这会导致 _AFXDLL
得到设置,如果我设置 / MT
:
An MFC application that I'm trying to migrate uses afxext.h
, which causes _AFXDLL
to get set, which causes this error if I set /MT
:
_AFXDLL构建的MD开关
Please use the /MD switch for _AFXDLL builds
我对日期的研究表明,使用Visual Studio构建在Windows NT 4.0上执行的应用程序是不可能的(C ++,在这种情况下)2005。
My research to date indicates that it is impossible to build an application for execution on Windows NT 4.0 using Visual Studio (C++, in this case) 2005.
这是真的吗?是否有解决方法?
Is this really true? Are there any workaround available?
推荐答案
不,有许多应用程序建立与VS2005必须支持Windows XP,2000,NT ,整个堆栈。问题是(默认情况下)VS2005想使用NT上不存在的库/导出。
No, there are many applications built with VS2005 that have to support Windows XP, 2000, NT, the whole stack. The issue is that (by default) VS2005 wants to use libraries/exports not present on NT.
请参阅此线程以获取一些背景信息。
See this thread for some background.
然后通过预处理器宏开始限制您的依赖关系,并避免在NT上不支持的API 。
Then start limiting your dependencies via preprocessor macros, and avoiding APIs which aren't supported on NT.
这篇关于使用Visual Studio 2005构建Windows NT 4.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!