就是把上面代码用vb或是c#解释一下?
主要是指针这一块。

解决方案 »

  1.   

    比如像这个Function EncodeInit(Parameter: Pointer): SmallInt; stdcall;external 'HotelLock.dll';
    在.net里定义时该用什么类型.
      

  2.   


    [ DllImport("HotelLock.dll",CallingConvention=CallingConvention.StdCall)]   
    public static extern short EncodeInit(IntPtr pointer)
      

  3.   

    delphi的这种定方法怎样转为C#
    Parameter : array[0..255] of char;
      

  4.   

    procedure TAPI_Demo.EncodeInit_BtClick(Sender: TObject);
    var
      Parameter : array[0..255] of char;
      FunRet : smallint;
    begin
      LStrcpy(Parameter,Pchar(LockPath_Ed.Text));
      FunRet := EncodeInit(@Parameter);
      if FunRet <> 1 then
      begin
      MakeCardMsgBox(FunRet);
      exit;
      end;这个怎么转为C#
    LStrcpy(Parameter,Pchar(LockPath_Ed.Text));
      

  5.   

    http://www.360doc.com/content/07/0405/11/2908_431505.shtml
    看看这个是否有帮助