5后VS2005的编译麻烦

5后VS2005的编译麻烦

本文介绍了升级到.NET 3.5后VS2005的编译麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到2008 Windows SDK,该版本在VS 2005中需要.NET 3.5和SP1.根据安装/发行文档,这应该可以正常工作.

我解决了大多数问题,但无法克服string.h中的C2491错误(不允许定义dllimport数据).

我已经定义了_CRT_SECURE_NO_DEPRECATE& _CRT_NONSTDC_NO_DEPRECATE.

谁知道怎么了?还是我别无选择,只能使用VS 2008?

I recently upgraded to 2008 Windows SDK, which required .NET 3.5 and SP1 for VS 2005.  According to the install/release doc's, this is supposed to work fine.

I sorted out most of the issues, but am unable to get past a C2491 error (definition of dllimport data not allowed) in string.h.

I have defined _CRT_SECURE_NO_DEPRECATE & _CRT_NONSTDC_NO_DEPRECATE.

Anyone know what is wrong?  Or do I have no choice but to use VS 2008?

推荐答案

感谢您的帖子!我建议将您的问题发布到 MSDN 论坛首页> Visual Studio > Visual Studio可扩展性位于此处: http: //social.msdn.microsoft.com/Forums/zh-CN/vsx/threads/.

Thank you for your post!  I would suggest posting your question in one of the MSDN > Forums Home > Visual Studio > Visual Studio Extensibility located here:  http://social.msdn.microsoft.com/Forums/en-US/vsx/threads/.

祝您有美好的一天!


这篇关于升级到.NET 3.5后VS2005的编译麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 13:25