比如我写一个函数名为 test
想导出的函数名为 123
怎么写?

解决方案 »

  1.   


    procedure proc(num:String); stdcall;external 'dll名' '别名'
      

  2.   

    导出library TestLibrary;
    //...
    procedure a(); stdcall;
    begin
      ShowMessage('Zswang 路过');
    end;exports
      a name '123';导入
    procedure a; stdcall; external 'TestLibrary.dll' name '123';
      

  3.   

    HOHO, 我试了很多种语法,就差这个没试了。
      

  4.   

    谢谢,要加FAQ的,我搜了一天都没找到答案。