将项目从VS2008转换为VS2010 [英] convert project from VS2008 to VS2010

查看:62
本文介绍了将项目从VS2008转换为VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.我在vs2008中用Win32 C ++编写了一个openGL项目.
现在,我想在vs2010中继续我的项目
但是VS2010在转换项目时给我一个错误

错误:

Hi. i wrote a openGL project in win32 C++ in vs2008
now , i wanna continue my project in vs2010
but VS2010 give me an error when convert project

ERROR:

unable start project "directory project\...\ map editor.exe"
this app has failed to start because the application configuration is incorrect.review the manifest file for possible errors.
reinstalling  the application may fix this problem.



请帮助我!



plz help me!

推荐答案

如果您的项目构建正确,但未按我的怀疑执行,则需要确保在您的应用程序中正确设置了应用程序配置文件输出目录.也许是在构建后的过程中将适当的配置文件复制到输出目录中?
If you project builds correctly, but does not execute as I suspect, then you need to ensure that your application configuration file is setup correctly in your output directory. Perhaps a post build process to copy an appropriate config file to the output directory is the issue?


我认为问题出在清单上.我记得在转换项目时遇到类似的问题.基本上,您需要在VS2010中创建一个新的Win32项目,然后打开wits链接器属性并将内容从Configuration Properties-> Linker-> Manifest File复制到您的程序中.
对于Win32项目,您应该在链接器命令行中包含以下字符串:
I think the problem is with manifest. I remember having the similar issues when converted my projects. Basically, you need to create a new Win32 project in VS2010, then open wits linker properties and copy the stuff from Configuration Properties->Linker->Manifest File to your program.

For Win32 projects you should have this string in your linker command line:
/MANIFESTDEPENDENCY:"type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='X86' publicKeyToken='6595b64144ccf1df' language='*'"



如果您有一个通过资源(RT_MANIFEST东西)创建的旧学校"清单,则需要将其删除.我记得这是一件很烦人的事.您将必须完成所有项目并手动更改此



If you had an "old school" manifest that was created via the resources (RT_MANIFEST thing) you need to delete it. It is quite an annoying thing, as I can recall. You will have to go through all your projects and manually change this


salam alireza jan
bebin man ham daghigha hamin moshkelo dashtam.barname ke dakhele 2008 neveshte budam,dakhel opengl 2010ejra nemishod.be dalile inke bazi file haye 2010 ba 2008 fargh dare.bayad in file ha ro az 2008 be dakhele folser 2010 copy koni.
vali ghab az un az文件haye 2010备份begir.

afxcomctl32.h
atlcore.h
atlimage.h

dar masire zir:
C:\ Program Files \ Microsoft Visual Studio 10.0 \ VC \ atlmfc \ include
salam alireza jan
bebin man ham daghigha hamin moshkelo dashtam.barname ke dakhele 2008 neveshte budam ,dakhel opengl 2010ejra nemishod.be dalile inke bazi file haye 2010 ba 2008 fargh dare.bayad in file ha ro az 2008 be dakhele folser 2010 copy koni.
vali ghab az un az file haye 2010 back-up begir.

afxcomctl32.h
atlcore.h
atlimage.h

dar masire zir:
C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include


这篇关于将项目从VS2008转换为VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆