F fox_s Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #1 在vc里要求BOOL Aaa(char * a,long & b,long &c,char * d); 在delphi里该如何对应呢,谢谢啦
S smithcouple Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #2 代码: [b]function [/b]Aaa(a: [b]string[/b]; var b: Integer; var c: Integer; d: [b]string[/b]): Boolean;
代码: [b]function [/b]Aaa(a: [b]string[/b]; var b: Integer; var c: Integer; d: [b]string[/b]): Boolean;
Z zhouman Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #3 function Aaa(achar;b:longint;c:longint;dchar):BOOL;
F fox_s Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #4 to zhouman, function Aaa(achar;b:longint;c:longint;dchar):BOOL;这样不对,编译时给b,c赋值的语句都不进行编译。 我觉得function Aaa(achar;blongint;clongint;dchar):BOOL;可以吧,请高手指教
to zhouman, function Aaa(achar;b:longint;c:longint;dchar):BOOL;这样不对,编译时给b,c赋值的语句都不进行编译。 我觉得function Aaa(achar;blongint;clongint;dchar):BOOL;可以吧,请高手指教
S smithcouple Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #5 你先查查delphi帮助,有没有plongint long &b是传地址,所以在delphi中,应该加上var delphi中有string类型,没必要在鼓捣pchar了,哎,感觉我的回帖很多余。。。
F fox_s Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #6 to smithcouple,非常感谢您的指教,plongint是有的
A amli Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #7 function Aaa(achar;var b:longint; var c:longint;dchar):BOOL;
F fox_s Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #8 我用function Aaa(achar;blongint;clongint;dchar):BOOL;可以实现调用了,不过给a赋值超过9位vc调用就出错,为什么呢
M mingzy Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-12 #9 function Aaa(achar;blongint;clongint;dchar):BOOL; 调用时可以先给a分配一个地址空间就可以了