VS2008 C ++ AppWizard将MFC DLL更改为静态链接 [英] VS2008 C++ AppWizard Changing MFC DLL to Static Link

查看:201
本文介绍了VS2008 C ++ AppWizard将MFC DLL更改为静态链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2008(C ++应用程序)

通过MFC向导创建我的应用程序模板后,然后
花了几天的时间使事情起作用,我现在意识到了
我无法切换默认设置...

使用MFC
(*)在共享DLL中使用MFC --- OOPS,我将其留在向导中.
()在静态库中使用MFC<-,但这就是我想要的.

那么,此向导单选按钮会更改哪个Project | Properties设置?
我现在需要更改什么才能使其静态链接,所以我只有一个
EXE分发吗?

thx和任何帮助我的人的直板棒.

-David Brown

Using Visual Studio 2008 (C++ apps)

After going thru the MFC Wizard to create my app template, and then
spending a couple days making the thing work, I now realize that
I failed to switch the default...

Use of MFC
(*) Use MFC in a shared DLL <-- OOPS, I left it here in the wizard.
( ) Use MFC in a static library <-- but this is what I wanted.

So, which Project|Properties setting(s) does this wizard radio button change?
What do I need to change to now make it link statically, so I have only a single
EXE to distribute?

thx, and a candybar to whoever helps me out.

-David Brown

推荐答案

在解决方案资源管理器"窗格中,右键单击项目名称,然后选择属性".

然后在左侧列表中选择``配置属性''->``常规''.

在右侧窗格中,更改使用MFC"的选项.

****************************************************** ******

顺便说一句,如果您开始使用第三方库并编写扩展DLL,则只需将其改回即可.在静态内部版本中获得的所有好处就是,安装了该版本的计算机不需要安装MFC运行时.
In the Solution Explorer Pane, right click the name of your project and select, ''Properties''.

Then select, in the list on the left, ''Configuration Properties''->''General''.

In the right hand pane, change the option for ''Use of MFC''.

********************************************************

As an aside, if you start employing third party libraries and writing extension DLLs, you''ll just be changing it back. All you gain in the static build is that the machines you install it on, won''t need the MFC runtime installed.


谢谢.那肯定正盯着我.我不知道
我怎么想念它.但是我还是要谢谢IOWEYOUACANDYBAR.
-DJB
Thank You. That sure was staring me right in the face. I dont know
how I missed it. But my supreme thanks anyway. IOWEYOUACANDYBAR.
-DJB


这篇关于VS2008 C ++ AppWizard将MFC DLL更改为静态链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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