删除对MFC DLL项目的外部依赖项 [英] Removing external dependencies to MFC DLL project
问题描述
在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屋!