关于VC6.0下Dll的 入口问题 -----

huofen2005 2006-10-17 12:32:30
Dll
如果是Win32控制台的 有DllMain()。
如果是MFC的 有CWinAPP子类对象TheApp来封装DllMain()。

有没有知道说DLL可以两者都没有,或者说用另一种方法来封装的呢?

//
情况:
别人给了我一个工程模板来开发串口驱动。我找半天没找到入口。
哪位有兴趣的话,把邮箱留下我把工程模板发过去。
把工程模板文件放在 VC安装目录\Common\MSDev98\Bin\IDE 里面,
然后建工程的选项卡里可以看到新的工程模板,建立一个空的工程,
帮忙看看入口函数它放在哪了?

...全文
525 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
huofen2005 2006-11-21
  • 打赏
  • 举报
回复
thanks! ^_^
jiangsheng(蒋晟.Net[MVP])
huofen2005 2006-10-18
  • 打赏
  • 举报
回复
哪位高手能再详细说说.
//
jiangsheng(蒋晟.Net[MVP]) 说
if it is or a managed (.Net) DLL
A DLL don't need to have an entry point
//
但是我这的DLL是要导出函数的,而且在里面定义了全局量的,应该不是a resource only DLL
我的程序是在VC6.0下的,应该不是a managed (.Net) DLL.
//
a managed (.Net) DLL指什么DLL啊?

蒋晟 2006-10-18
  • 打赏
  • 举报
回复
.Net Assembly Dlls

The DllMain function is an optional entry point into a dynamic-link library (DLL). there is no requirement to have one. DllMain exists primarily to initialize any global data in the DLL - if there is no global data in the DLL and you do not need to perform any other operations on DLL load or DLL unload then you can do without a DllMain function.
蒋晟 2006-10-18
  • 打赏
  • 举报
回复
Yes
A DLL don't need to have an entry point if it is a resource only DLL or a managed (.Net) DLL
iland9876543210 2006-10-18
  • 打赏
  • 举报
回复
up

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧