VC中的DLL:VPIClientDll.dll函数定义为:
Typdef  DWORD VPI_HANDLE 
VPI_HANDLE   VPI_Register(char *IPstr, WORD Port) delphi调用:
 function  VPI_Register(var IPStr:pchar;port:Dword):VPIHandle;pascal;external 'VPIClientDll.dll';
提示如上错误!!请问是什么原因?

解决方案 »

  1.   

    VC中的DLL:VPIClientDll.dll函数定义为:
    Typdef  DWORD VPI_HANDLE 
    VPI_HANDLE   VPI_Register(char *IPstr, WORD Port) delphi调用:
     function  VPI_Register(var IPStr:pchar;port:word):dword;stdcall;external 'VPIClientDll.dll';
      

  2.   

    噢,我原来调用就用stdcall,提示这种错误,
    function    VPI_Register(var  IPStr:pchar;port:Dword):VPIHandle;stdcall;external  'VPIClientDll.dll';  
    VPIHandle:我定义的Dword类型
      

  3.   

    噢,我原来调用就用stdcall,提示这种错误,
    function    VPI_Register(var  IPStr:pchar;port:Dword):VPIHandle;stdcall;external  'VPIClientDll.dll';  
    VPIHandle:我定义的Dword类型
      

  4.   

    噢,我原来调用就用stdcall,提示这种错误,
    function    VPI_Register(var  IPStr:pchar;port:Dword):VPIHandle;stdcall;external  'VPIClientDll.dll';  
    VPIHandle:我定义的Dword类型