PChar(d) 不能这样 用!

解决方案 »

  1.   

    参数赋值有问题,这样
    var 
    Count: DWORD ;
    Stream.WriteBuffer(Count, SizeOf(Count));
      

  2.   

    你只是吧 String 转换成了 pchar,你要WriteBuffer 写到那里呀 哈哈~~
      

  3.   

    必须先给 d 分配空间,绝对不能:stream.WriteBuffer(d,10); const
     N = 10;
    var
     d:string;
    begin
     SetLength(d, N);
     stream.WriteBuffer(d[1], N);
    end;
      

  4.   

    faint!
    就算不给我的正确答案分,也不能给莫名其妙的错误答案分啊?