删除外部依赖关系到MFC DLL项目 [英] Removing external dependencies to MFC DLL project

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

问题描述

我在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项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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