如何在vc ++项目中绑定单个exe? [英] How to bind up a single exe in vc++ project?

查看:90
本文介绍了如何在vc ++项目中绑定单个exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio 2010中完成了一个项目,即Visual C ++项目.如何将项目绑定和部署到可以在所有计算机(包括不具有Visual Studio的计算机)上运行的单个exe中.我想使此exe可以在没有该文件夹或框架安装任何dll的任何计算机上运行,​​只需使用独立exe,只需单击即可运行该应用程序而没有任何依赖项

I have done a project in Visual studio 2010, Visual C++ project. How to bind and deploy the project into a single exe which could run on all machines, including machines not having Visual Studio. I would like to make this exe to work in any machine without any dlls in that folder, or framework installation, Just the standalone exe, a single click should run the application without any dependencies

推荐答案

产品部署有多种方式,我不想讨论,因为您没有解释您的要求.我个人更喜欢仅将文件复制到目标计算机,但是.EXE应该能够那样工作.

无论如何,目标计算机上永远不需要Visual Studio.绝不.在更坏的情况下,您需要安装与每个Visual Studio版本捆绑在一起的所谓的"Visual Studio可重新分发".您有权无限制地重新分配产品.

每个人都可以免费下载可重新分发的软件包.例如: http://www.microsoft.com/download/en/details.aspx?id = 5555 [ ^ ].

—SA
There are different ways of deploying of a product, which I don''t want to discuss because you did not explain your requirements. I would personally prefer just to copy a file to a target machine, but .EXE is supposed to be able to work like that.

Anyway, Visual Studio is never required on the target machine. Never. In worse case, you need to install so called "Visual Studio re-distributable" bundled with each version of Visual Studio. You have a right of unlimited re-distribution with your product.

Everyone can download the re-distributable package free of charge. For example: http://www.microsoft.com/download/en/details.aspx?id=5555[^].

—SA


这篇关于如何在vc ++项目中绑定单个exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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