C
chengang_1981
Unregistered / Unconfirmed
GUEST, unregistred user!
我最近看了点关于DLL进出口函数的资料,,自己写了个DLL,,但是编译不能通过,请问各位大虾问题在哪儿?<br>library Project1;<br>{ Important note about DLL memory management: ShareMem must be the<br> first unit in your library's USES clause AND your project's (select<br> Project-View Source) USES clause if your DLL exports any procedures or<br> functions that pass strings as parameters or function results. This<br> applies to all strings passed to and from your DLL--even those that<br> are nested in records and classes. ShareMem is the interface unit to<br> the BORLNDMM.DLL shared memory manager, which must be deployed along<br> with your DLL. To avoid using BORLNDMM.DLL, pass string information<br> using PChar or ShortString parameters. }<br><br>uses<br> SysUtils,<br> Classes,<br> dialogs;<br><br>{$R *.res}<br>procedure into;<br>begin<br>showmessage('进入');<br>end;<br>procedure outo;<br>begin<br>showmessage('退出');<br>end;<br>initialization<br>into;<br>finalization<br>outo;<br>begin<br>end.<br><br><br>在请教一个问题,,就是在钩子的回调函数里向外发送的消息,对应的窗口是收不到这个消息的,对吗?