关于发布,exe,windows与视觉工作室,没有视觉工作室的窗户的问题。 [英] Question about release, exe, windows with visual studio, windows without visual studio.

查看:81
本文介绍了关于发布,exe,windows与视觉工作室,没有视觉工作室的窗户的问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,Win7,VS2013

Win7, VS2013

我希望我的程序以exe文件的形式运行。

I want my program to run as exe file.

exe文件运行良好  in Windows与视觉工作室,但不在没有视觉sutido的Windows中运行。

the exe file runs well in windows with visual studio but don't run in windows without visual sutido.

现场发生的错误是  loadlibrary()。 dll无法加载。

the spot occurring error is loadlibrary(). the dll can't be loaded.

我将dll放入exe文件存在的文件夹中。

I put dlls into folder that exe file exists.

我猜视觉工作室制作的路径可以 有钥匙。

I guess path made by visual studio may have the key.

你知道如何在没有visual studio的情况下在exe文件中运行吗?

do you know how to work the exe file works in windows without visual studio?

我已经尝试安装版本了在没有vs的Windows中打包。

I already tried to install release package in windows without vs.

推荐答案

首先,您需要在没有Visual Studio的系统上安装VS2013 Visual C ++ Redistributable。 您应该在开发系统上拥有安装程序的副本,或者可以从
https://获取。 support.microsoft.com/en-us/kb/2977003

VC ++ DLL的调试版本不可再发行,除非在系统上安装VS,否则将无法使用 因此,在可再发行组件安装了
之后,您还应该确保在没有VS的系统上使用发布版本。 

Debug versions of VC++ DLLs are not redistributable and will not be available for use unless VS is installed on a system.  Therefore, you should also make sure that you use a release build on the system without VS after the redistributable has been installed. 

另一种选择是使用静态CRT库构建程序。 这将创建一个不包含VC ++ DLL依赖项的.exe,因为.exe将包含其自己的CRT私有副本。

Another option is to build your program using the static CRT libraries.  This will create an .exe that does not include dependencies on VC++ DLLs since the .exe will include its own private copy of the CRT.


这篇关于关于发布,exe,windows与视觉工作室,没有视觉工作室的窗户的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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