VC++编的DLL中有这么个函数,
_stdcall FC_AVICreate(void **handle);
其中void **handle是回参。
问下delphi要用什么类型调用回来

解决方案 »

  1.   

    我给你个简单的例子!//dll中的初始化函数
    function(hWndParent: HWND; Gid: Int64; pszUserPath: LPCWSTR): HWND;
    调用程序中://将dll中的函数实例化,定义在单元文件的typei~mplementation 之间
    TGetFrm = function(hWndParent: HWND; Gid: Int64; pszUserPath: LPCWSTR): HWND; stdcall;
    //调用的过程
    procedure mythreadfunc;
    var
      Dllhandle: THandle;
      func: TGetFrm;
      formhandle: HWND;
      UserPath: LPCWSTR;
      Inttt: Int64;
      funccc: TGetActive;
      RootNode: IXMLNode;
      i: Integer;
      filename: string;
      tabsheet: TbsSkinTabSheet;
      pngpath, dllname: string;
    begin
        Dllhandle := LoadLibrary('Suspendfrm.dll'); //添加读取的dll文件名
         @func := GetProcAddress(Dllhandle, 'Init');
        func;//此处就可以进行操作了
    end;
    这个例子就是调用dll的例子,如果你还没有搞懂,我可以帮你,
    邮箱地址:[email protected]
      

  2.   

    _stdcall FC_AVICreate(void **handle); 
    procedure FC_AVICreate(var buff:PChar);
      

  3.   

    void*对应着Pointer,void**自然就是PPointer或者var/out X: Pointer了
      

  4.   

    问题好像没说清楚,问题中的handle是一个返回指针