问题如标题所示。
PB动态库:WJJDBlib.dll
原型:Function int Decrypt(decimal inprice,ref string itemcode,ref string outprice) library "WJJDBlib.dll"请问在Delphi中如何声明这个函数。谢谢.

解决方案 »

  1.   

    Function Decrypt(decimal inprice,ref string itemcode,ref string outprice):int;stdcall;external 'WJJDBlib.dll';
      

  2.   

    来自沪上傅远山的致意([email protected]):
    function Decrypt(inprice:float; var itemcode:PChar; var outprice:PChar):integer;stdcall;external 'WJJDBlib.dll';
      

  3.   

    "ref" Delphi有这个关键字吗????
      

  4.   

    sorry,不好意思!函数内的参数没有仔细看!楼上写得对~
      

  5.   

    Delphi 里没有Float型吧。只有real 和double
      

  6.   

    function Decrypt(inprice:double; var itemcode:PChar; var outprice:PChar):integer;stdcall;external 'WJJDBlib.dll';
    这样还不行???????