有别人提供的DLL, .lib , .h文件,为了增强功能封装了该dll,我想只提供给用户我自己的DLL,也就是把别人的DLL静态封装到我的DLL中,有没有办法?
解决方案 »
- 关于VC绘图的擦除问题
- 求助 基于FORVIEW的类中怎么添加标签 ?
- 在win32中,能否用mfc的消息映射?
- VC延迟响应
- 谁有光盘《Visual C++高级编程》? --送分
- 如何列举windows系统中所有的service.例如Fax,Dhcp
- 我在sdi中创建了一个静态分割窗口,有3个视图窗口,我想在CMainFrm中怎样才能调用到
- 菜单快捷键问题
- 高分求救,关于病毒的问题
- MFC与.net控件的兼容
- 初学者问CClientDC的用法
- 我学习<<VC6.0技术内幕 >>的MDI部分(ex18a),按向导生成了一个MDI框架,在工程中添加了Student.h和Student.cpp文件,编译时怎么
关注!~
或者还有什么别的方法?
-----------------------------------
不太明白你的意思?不管使用隐式连接还是显示连接的话还是需要原来的DLL。
dll2lib生成的LIB里面是不含函数体的,只有函数的入口地址。
如果想舍弃原来的DLL我觉得impossible
?应该是将动态库变成静态库了吧?如果只是函数入口地址怎么生成的lib文件那么大?——比原来的dll大了一倍多。
----------------
LIB文件有两种,一种是静态的,其中包括函数的实际代码,一种是由DLL生成的LIB,其中并不包含代码,只是包含DLL的链接信息。
DLL2LIB生成的是第二种
DLL to Lib is a magical tool which can convert a DLL into its equivalent static library file. After that, you can replace the original DLL with the static library file, rebuild your application, and distribute it without the DLL! The most exciting thing is that the conversion process DOES NOT require any source codes of the DLL files! All works are done from binary to binary. DLL to Lib will rebuild programming interfaces identical to the export functions in the DLL and reconstruct the necessary symbol tables, string tables and reference tables from the DLL to make a valid static library for you!
运行时,把它释放出来,运行结束后再删除
也许我 水平 还潜:
静态的应该,没有问题, 可以 在封装一次,
但是 动态的 ,dll 里 定义 核心的 东西.
不能发布的 时候, 不发布过去的 DLL,
像你这么说, MFC420.dll 也 不需要了 ,
我 觉得 不行