删除对MFC DLL项目的外部依赖项 [英] Removing external dependencies to MFC DLL project

查看:598
本文介绍了删除对MFC DLL项目的外部依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS2008中开发MFC DLL项目。
dll编译好,我可以从一个承包商为我开发的GUI exe调用它。

Im developing a MFC DLL project in VS2008. The dll compiles OK and I can call it fine from an GUI exe that a contractor has developed for me. Visual C++ Redistributables are required to be installed for my dll (and maybe the exe which is developed in C++ too)

另一家公司想要授权我的dll使用他们的C ++可执行程序。他们要求我的dll没有外部依赖。是否有可能编译我的dll删除所有外部依赖如Visual C ++再发行?

Another company wants to licence my dll to use with their C++ exe. They have requested that my dll have no external dependencies. Is it possible to compile my dll to remove all external dependencies like the Visual C++ Redistributables?

设置/ MT是否执行此操作?
我阅读了 http://stackoverflow.com/questions/757418 / should-i-compile-with-md-or-mt 这有一些意义,但我关心的dll地狱。

Does setting /MT do this? I have read http://stackoverflow.com/questions/757418/should-i-compile-with-md-or-mt which makes some sense but I am concerned about dll hell.

exe调用我的dll?我读某处的exe和dll需要使用相同的Visual C ++可再发行组件或东西。

Can this create issues with exe calling my dll? I read somewhere about that the exe and dll need to be using the same Visual C++ Redistributables or something.

我对C ++有点新。

I am somewhat new to C++. Any advice appreciated.

推荐答案

为什么不将所有相关的dll打包到安装程序包中并发布给您的客户?

Why not you package all the dependent dlls into a installer package and release to your customer?

我看到一些软件包包括vc的依赖库....

I have seen some of the software package does include the vc's dependent libraries....

这篇关于删除对MFC DLL项目的外部依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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