在vb中是这样声明的
Private Declare Function GETFONTHEX Lib "fnthex32.dll" (ByVal chnstr$, ByVal fontname$, ByVal chnname$, ByVal orient%, ByVal height%, ByVal width%, ByVal bold%, ByVal italic%, ByVal hexbuf$) As Integer那么在delphi中呢?

解决方案 »

  1.   

    function  GETFONTHEX(chnstr:pchar;fontname :pchar;chnname:pchar;orient:integer;height,width,bold,italic,hexbuf:integer;): integer; stdcall; external 'fnthex32.dll';
      

  2.   

    在 implementation 声明
    function yourfunction(parament):type;stdcall;
    external'yourdll.dll';
    然后就可以调用了
      

  3.   

    interfaceuses
      ... ;
      function Name(参数列表同DLL定义) : 
            ):Boolean; stdcall; external 'DLLName.dll';
            
      

  4.   

    http://wwwb.pconline.com.cn/pcedu/empolder/doc/delphi/10202.htm
    http://wwwb.pconline.com.cn/pcedu/empolder/doc/delphi/10204.htm