关闭

delphi 做了个DLL

168人阅读 评论(0) 收藏 举报
分类:
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.
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:116938次
    • 积分:3247
    • 等级:
    • 排名:第10497名
    • 原创:214篇
    • 转载:21篇
    • 译文:1篇
    • 评论:3条
    最新评论