delphi中如何做,谢谢!

解决方案 »

  1.   

    ……
    //参考如下代码~~library Project1;uses
      SysUtils,
      Classes;{$R *.res}var
      vMyValue: Integer;function GetMyValue: Integer; stdcall;
    begin
      Result := vMyValue;
    end;procedure SetMyValue(mValue: Integer); stdcall;
    begin
      vMyValue := mValue;
    end;exports
      GetMyValue,
      SetMyValue;beginend.
      

  2.   


    procedure SetMyValue(Var mValue: Integer); stdcall;
      

  3.   

    字符型变量需定义成“Var Str : Pchar”
      

  4.   

    你要把握的是:dll 就是一个含数或过程
      

  5.   

    请教楼上:DLLzho中的地址空间和应用程序的地址空间在一个空间吗
      

  6.   

    dll应该在一个进程空间。谢谢各位的帮忙!