概述library Project2; { Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-View Source) USES clause if your DL library Project2; { important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-VIEw Source) USES clause if your DLL exports any procedures or functions that pass strings as parameters or function results. This applIEs to all strings passed to and from your DLL--even those that are nested in records and classes. ShareMem is the interface unit to the BORLNDMM.DLL shared memory manager,which must be deployed along with your DLL. To avoID using BORLNDMM.DLL,pass string information using PChar or ShortString parameters. } uses SysUtils, Classes, Dialogs; procedure teststr(); stdcall; begin showmessage('pxb'); end; {$R *.res} exports teststr; begin end. 总结
以上是内存溢出为你收集整理的delphi 做了个DLL全部内容,希望文章能够帮你解决delphi 做了个DLL所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)