当前位置: 首页 > news >正文

动易论坛官方网站竞价如何屏蔽恶意点击

动易论坛官方网站,竞价如何屏蔽恶意点击,美国最新军事消息,重庆市建设厅官方网站1、问题描述 这两天一直在用vs2008编写一个小项目,需要在c代码中通过命令行的方式调用cl.exe和link.exe,也就是给编译器cl和链接器link传递参数,然后编译链接生成可执行文件exe.最终生成的result.exe运行时老出现Runtime Error R6034 An appl…

1、问题描述

      这两天一直在用vs2008编写一个小项目,需要在c++代码中通过命令行的方式调用cl.exe和link.exe,也就是给编译器cl和链接器link传递参数,然后编译链接生成可执行文件exe.最终生成的result.exe运行时老出现Runtime Error R6034 An application has made an attempt to load the C runtime library incorrectly.的错误,围绕这个问题,我查了两天的资料,最后终于解决了。。

  在此简单的记录一下解决方法,方便以后用到。

2、问题解决

  在利用命令行的方式编译链接生成可执行文件之前,可以将需要传递给cl.exe的源程序(.cpp,.h)文件拎出来,利用这些源文件手动的创建一个vs2008工程,然后编译链接这个vs2008工程生成可执行文件。做这一步是为了保证生成的可执行文件是你本人需要的结果,如果这个手动工程都不能生成你需要的exe,那通过命令行的方式生成的exe肯定就不是你想要得到的结果。

  生成好vs2008工程并且执行正确后,在这个工程的项目--->属性-->c/c++--->命令行,你会看到一大堆的命令,其实这就是传递给cl.exe的命令,同样的道理,在项目--->属性-->链接器--->命令行中可以看到传递给link.exe的命令。

  按照上面所说的方法,我在自己的项目中编写好自动生成exe 的代码生成一个exe。然后点击这个exe,就出现Runtime Error R6034 。

  下面贴上解决该问题的原文:

  An application has made an attempt to load the C runtime library without using a manifest. This is an unsupported way to load Visual C++ DLLs. You need to modify your application to build with a manifest. For more information, see the "Visual C++ Libraries as Shared Side-by-Side Assemblies" topic in the product documentation.
  Applications must use a manifest to load the C runtime library. For more information, see Visual C++ Libraries as Shared Side-by-Side Assemblies and Manifest Generation in Visual Studio.
In release builds, the diagnostic message reads: "An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information."
  To correct this error
  Rebuild your application to include a manifest. Building an application with Visual Studio automatically puts the manifest into the resulting .exe or .dll file. If you are building at the command line, use the mt.exe tool to add the manifest as a resource. Use resource ID 1 if you build an .exe, and resource ID 2 if you build a .dll. For more information, see How to: Embed a Manifest Inside a C/C++ Application.

  重点是这一句:If you are building at the command line, use the mt.exe tool to add the manifest as a resource. Use resource ID 1 if you build an .exe, and resource ID 2 if you build a .dll. For more information, see How to: Embed a Manifest Inside a C/C++ Application.

  按照这个说法,命令行不仅需要调用cl.exe和link.exe,还需要调用一个叫mt.exe的,mt.exe的参数其实在上文创建的vs2008工程下项目--->属性--->清单工具---->命令行有相关的命令参数。在命令中添加这一个命令之后重新执行,问题就可解决了。

转载于:https://www.cnblogs.com/LCCRNblog/p/4547892.html

http://www.dt0577.cn/news/25264.html

相关文章:

  • 做网站是怎么做的南宁百度快速排名优化
  • dedecms 网站栏目管理网络营销人员招聘
  • 建歌网站多少钱百度seo优化网站
  • 网站建设技术服务公司百度邮箱注册入口
  • python做后台网站的多吗免费永久个人域名注册
  • 企业网站 seo怎么做山东做网站
  • 温州市建设小学网站首页seo博客是什么意思
  • 企业网站建设公司宣武临沂做网站建设公司
  • 可以做用户旅程图的网站农产品品牌推广方案
  • 昆明做网站优化的公司源码网
  • 只有域名可以做网站吗百度识图在线使用一下
  • dw网站大学生代做附近广告公司
  • wordpress 主题木马上海优化seo公司
  • 如何搭建php网站seo如何提升排名收录
  • 网页开发模板智能网站推广优化
  • vps 上怎么做网站谷歌seo靠谱吗
  • 城乡建设部网站安全员证书查询昆山网站建设公司
  • 网站建设实验步骤西安疫情最新消息
  • 注册网站怎么做网站网络营销推广方法十种
  • 网站运营是什么意思怎么在百度上面打广告
  • 做公司网站页面优化网站seo
  • 兰州市做网站的公司免费推广网站2024
  • 个体工商户可以申请网站建设吗广州宣布5条优化措施
  • 北京网站建设公司哪家好互动网站建设
  • 做区位分析的地图网站宁波网站排名优化seo
  • 网站 会员管理深圳百度网站排名优化
  • 如何在网站做宣传自己做网站建设
  • 怎么做信息发布型网站百度用户服务中心
  • 营销型网站排百度河南代理商
  • wordpress仿QQ看点aso优化{ }贴吧