荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: tec (JL~酷夏凉风), 信区: Visual
标  题: Re: 看看是调用了那个函数????
发信站: 荔园晨风BBS站 (Sun Aug 24 23:00:37 2003), 站内信件

加序号与不加序号的区别记得在什么地方看过,不过记不起来了,
所以特地查了下MSDN,下面你自己看看。
警告的信息是什么,贴出来看看。
还有你说导出时什么加引号是什么意思,这个不明白。


Other useful features of the DEF file is use of the ordinal number and
the NONAME flag.
................
The ordinal number can be any decimal number usually set to indicate the
 number of functions in the DLL, which in turn provides a shorthand
method for getting the address of the function in the DLL when
GetProcAddress function is used (discussed in the following section on
explicit linking).

................

Explicit dynamic linking is used when you want to load the DLL only when
 you are ready to call the functions in the DLL in your application.
When you are done using the functions, you can unload the DLL from
memory, thus saving memory space when the application is running, and
load another DLL for some other function calls. The two functions used
to achieve this are LoadLibrary and FreeLibrary. To get the function
addresses GetProcAddress is used. GetProcAddress can use the actual
function name or the ordinal number of the function as associated in the
 DEF file, which we discussed before. The use of the ordinal number lets
 GetProcAddress locate the function in the DLL function table quickly
instead of searching the table with a function name string. If the
NONAME flag is used in the DEF file, GetProcAddress must use the ordinal
 number. To get the function address through the ordinal number, the
MAKEINTRESOURCE macro is used.
................



【 在 littlebao (爱拼才会赢) 的大作中提到: 】
: .net没有setting的,都是属性操作。
: 还想问一下,在dll里引出函数的时候加序号和没加序号有什么区别
: 我在.net里如果加了序号他就会发出警告,但是在6.0里如果我用alt建立com
: 他的引出的函数是加了序号的,真是奇怪。还有引出函数的名字用双引号和没用双引号
: 有什么区别。
: 【 在 tec (JL~酷夏凉风) 的大作中提到: 】
: : 对不起,没用过.net的IDE,我想应该也是在project settings
: : 的debug tab里吧,没有吗?


--
※ 修改:·tec 於 Aug 24 23:14:37 修改本文·[FROM: 61.144.235.40]
※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.64.33]


※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 61.144.235.40]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店