如何将MFC .LIB转换为.DLL? [英] How do i convert an MFC .LIB to a .DLL?

查看:75
本文介绍了如何将MFC .LIB转换为.DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将C ++ MFC .LIB转换为.DLL?我有该库的源代码.

我也发现只是将项目属性类型从静态库(.LIB)"更改为动态库(.DLL)"是行不通的.哈哈.

任何帮助将不胜感激.

谢谢!

How do i convert a C++ MFC .LIB to a .DLL? I have the source code for the library.

Also i discovered simply changing the project properties type from "static library(.LIB)" to "Dynamic Library (.DLL)" doesn''t work. LOL.

Any help would be much appreciated.

Thanks!

推荐答案

我认为最简单的方法是创建一个新的DLL项目,并将它也链接到该库.
I think the easiest way is to create a new DLL project, and link the library too it.


您将必须添加一些方法来导出符号和dll入口点.当您开发静态库时,这些并不重要,但是当您创建dll时就变得很重要
演练:创建DLL [
You would have to add some methods to export symbols and dll entry point. when you develop a static library those are not important but when you create dll it become a big deal
walkthrough: creating DLL[^] take a look here


这篇关于如何将MFC .LIB转换为.DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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