看在熬夜得分上帮帮我,怎么在delphi中调用该dll
我是这样声明的function test(cs:integer;out pchar):integer;extenal;'dllname.dll' ;
结果返回值cs是正确的
但是调用 strpas(out)时总是出错
请指点 

解决方案 »

  1.   

    out不是关键字么?你是说out的值?那也要说一下什么错误嘛。
      

  2.   

    还有声明也有问题:function test(cs:integer; o pchar):Word;extenal;'dllname.dll' ;不要加out, 返回值是Word
      

  3.   

    ppchar = pchar^;function test(cs: integer; out: ppchar):integer;extenal;'dllname.dll' ;
      

  4.   

    打开Dpr工程的文件,(通过View Source选项),在program的uses第一个写BorlndMM(记不清楚了,似乎又是DelphiMM,ShareMM),你可以查帮助。
      

  5.   

    谢谢各位了,不过我用了ipstr类型声明,然后传入一个字符数组就可以了,哪儿有关于Delphi字符串的专题文章?