问题描述
我在VS2008开发一个MFC DLL项目。dll编译好,我可以从承包商为我开发的GUI exe中调用它。需要为我的dll安装Visual C ++可再发行组件(也许是用C ++开发的exe)
另一家公司想要许可我的dll与他们的C ++可执行程序。他们要求我的DLL没有外部依赖。是否可以编译我的DLL来删除所有外部依赖关系,如Visual C ++可再发行组件?
设置/ MT是否执行此操作?
我已阅读我应该用/ MD还是/ MT? / a>这有一些意义,但我关心dll地狱。
这可以创建exe调用我的DLL的问题吗?我读到某个地方,exe和dll需要使用相同的Visual C ++ Redistributables或某些东西。
我对C ++有些新意。任何建议赞赏。
为什么不将所有依赖的dll打包到安装程序包中并发布给您的客户?
我已经看到一些软件包中包含vc的依赖库....
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)
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?
Does setting /MT do this?I have read Should I compile with /MD or /MT? which makes some sense but I am concerned about dll hell.
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.
I am somewhat new to C++. Any advice appreciated.
Why not you package all the dependent dlls into a installer package and release to your customer?
I have seen some of the software package does include the vc's dependent libraries....
这篇关于删除外部依赖关系到MFC DLL项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!