是否可以以编程方式检测Visual C ++ 2005 SP1? [英] is it possible to programmatically detect Visual C++ 2005 SP1?
本文介绍了是否可以以编程方式检测Visual C ++ 2005 SP1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有什么方法可以做这样的事情
#if<在Visual C ++ 2005 SP1上运行>
//这里的SP1代码
#else
//这里的其他代码
#endif
Is there some way I can do something like this
#if <running on Visual C++ 2005 SP1>
//SP1 code here
#else
//other code here
#endif
推荐答案
你好乔纳森!
Hi Jonathan!
我有什么方法可以做这样的事情
#if<在Visual C ++ 2005 SP1上运行>
//这里有SP1代码
#else
//这里的其他代码
#endif
Is there some way I can do something like this
#if <running on Visual C++ 2005 SP1>
//SP1 code here
#else
//other code here
#endif
目前我没有看到办法...
但是:你为什么不需要它?
问候
Jochen
Currently I don''t see a way...
But: Why do nou need it?
Greetings
Jochen
您好Bruno!
Hi Bruno!
> ;目前我还没有看到...
>Currently I don''t see a way...
_MSC_VER?
_MSC_VER ?
_MSC_VER是1400在这两种情况下...
问候
Jochen
_MSC_VER is "1400" in both cases...
Greetings
Jochen
微软已经对CxxUnhandledExceptionFilter逻辑在
Visual C ++ 2005 SP1中。由于我的代码(在一个DLL中)与使用Visual C ++ 6编译的可执行文件(并且我无法触摸)链接
的方式,
此更改已破坏我在崩溃时倾倒调试
信息的功能。我有一个使用VS2005 SP1再次工作的解决方法
,但这只适用于VS2005 SP1而不适用于VS2005。
因此需要检测差异:)
Microsoft has made some changes to the CxxUnhandledExceptionFilter logic in
Visual C++ 2005 SP1. Because of the way that my code (in a dll) is linked
to executable files compiled with Visual C++ 6 (and that I cant touch),
this change has broken my functionality that I have for dumping debug
information in the event of a crash. I have a workaround that makes it work
again with VS2005 SP1 but that only works on VS2005 SP1 and not on VS2005.
Hence the need to detect the difference :)
这篇关于是否可以以编程方式检测Visual C ++ 2005 SP1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文