English 中文(简体)
在其它机器上运行 C++ 程序
原标题:Running C++ program on other machines

所以,我知道这是一个常见的问题。 我希望能够在其他 Windows 机器上运行 C++ 程序, 而不安装视频工作室 。 当然, 我得到了一个丢失的 Dll 文件的错误信息 。 我在想, 我是否可以创建一个安装器, 安装该 dll, 然后能够运行程序 。 这是否有效? 如果有效, 我将如何做这种事情? 如果有自动安装器, 这将是一件好事 。

最佳回答

查看是否有 stistic 编译选项。 应该有。 这样您就可以静态地编译您的程序, 如何将所有必需的 dll 文件放入可执行文件, 这样您就可以在其他窗口平台上移动执行文件, 而不安装 VS

问题回答

通常的解析方式是 < a href=" "http://www.deparentidencywalker.com/" rel="nolfollow" >Dependence Walker 。

如果您确切知道缺少哪些 dll 文件, 您可以在您的应用程序旁边, 比如在.zip 文件中提供 。

为窗口安装安装器并非易事 。 您可能想要查看适合您的软件, 如 < a href=" http:// www. indigorose.com/ products/ setup- factory/ " rel= "nofollow" > Setup Factory (已支付) 或 < a href= > http:// nsis. sourceforge. net/ Main_Page" rel=" nofolpol" > Null软脚本安装系统 < / a > (免费) 。 这些软件可以很容易地创建专业的外观装置 。

您是否知道您不必安装整个 VS 来运行您的应用程序, 但只要 VS < a href=" http://www.microsoft.com/ en- us/ download/ details. aspx?id= 5555" rel="nofollow" > reditionprofile project 可能比您静态编译的应用程序要小得多 (~ 5 MB)? 您也可以使用 < a href=" http://msdn. microftolf. com/ en- us/library/h4k032e1. aspx" rel=" nofolvection" butstrapper , 如果您想要您的应用程序包括一个预设条件显示为一块, 您也可以使用此应用程序 。

然而,静态连接也是一个很好的选择,特别是如果您的程序不是由太多的二进制文件组成,而是执行非常简单的任务。





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签