Delphi中声明: 
function fGetStr(Str: PChar): PChar;
begin
        Result := Str;
end;VB中怎么调用?

解决方案 »

  1.   

    把函数声明为stdcall,在VB中像调用API哪样调用
      

  2.   

    Delphi 中做成 DLL,并且  Export 然后类似于这个 API 一样调用Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long  
      

  3.   

    我想问的是Delphi 中 已经 ExportsDelphi 中 PChar 类型在 VB 里应该声明成什么?
      

  4.   

    PChar 在 Delphi 中是个指针类型!
    VB中指针么?一直报错:DLL调用约定错误!