积极答复者
VS2008 C# 编译winform程序 在WIN7下运行如何关闭DEP

问题
-
我用C#编写的winform程序放WIN7上运行,结果出现停止工作,查找原因发现是WIN7的DEP,命令行关闭DEP后程序正常运行,但是不知如何在VS2008中设置如何关闭DEP,求高手指点。
参考资料:
1. http://www.cnblogs.com/zxjay/archive/2010/06/22/1762808.html
2. http://blogs.msdn.com/b/ed_maurer/archive/2007/12/14/nxcompat-and-the-c-compiler.aspx
3. http://www.atrevido.net/blog/PermaLink.aspx?guid=ac03f447-d487-45a6-8119-dc4fa1e932e1
4. http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/c1b03c30-a7cf-4ae4-b134-f0da0ed6dd83/- 已编辑 TigerLiuw 2011年11月28日 6:40
- 已编辑 Lie YouModerator 2011年11月28日 7:56 link
答案
-
看看这篇post,也是关于win7的DEP问题:
http://stackoverflow.com/questions/350977/how-to-make-my-program-dep-compatible/351087#351087
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
全部回复
-
VC++在Visual Studio 中可以这个设置:http://msdn.microsoft.com/zh-cn/library/ms235442(v=VS.100).aspx
C#在Visual Studio 还不可以设置,也没有官方说明。
如果要做这样的操作的话,我觉得可以试一下process类和注册表类。
希望对您有所帮助。
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
- 已标记为答案 Lie YouModerator 2011年11月25日 2:57
- 取消答案标记 TigerLiuw 2011年11月27日 9:27
-
看看这篇post,也是关于win7的DEP问题:
http://stackoverflow.com/questions/350977/how-to-make-my-program-dep-compatible/351087#351087
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us