保 保龙 Unregistered / Unconfirmed GUEST, unregistred user! 2003-11-25 #1 function Max(x,y:integer):integer; stdcall; far; external 'PenDll.dll';<br>如上:)<br>"stdcall" 是标准调用是吧?<br>"external" 是引用外部是吧?<br>"far" 是什么意思?<br>
function Max(x,y:integer):integer; stdcall; far; external 'PenDll.dll';<br>如上:)<br>"stdcall" 是标准调用是吧?<br>"external" 是引用外部是吧?<br>"far" 是什么意思?<br>
H hnxx2003 Unregistered / Unconfirmed GUEST, unregistred user! 2003-11-25 #2 far:也是DLL调用的方式说明适用于DELPHI1,DELPHI2,DELPHI3,<br>stdcall:是一种较为安全的调用在D5,D6中用的多;<br>
A app2001 Unregistered / Unconfirmed GUEST, unregistred user! 2003-11-25 #3 Stdcall(必选),表示传递约定,这样调用模块(应用程序),与被调用模块(DLL)就使用相同的参数约定。关键字external(必选),声明访问外部函数。<br>
Y yueyaren Unregistered / Unconfirmed GUEST, unregistred user! 2003-11-25 #5 调用一个DLLs中的过程或函数时,external指示增加到过程或函数的声明语句中。被调用的过程或函数必须采用远调用模式,使用far过程指示或一个{$F +}编译指示。
J jmlwz Unregistered / Unconfirmed GUEST, unregistred user! 2003-11-28 #7 jihao:=mystrtoint(FlatComboBox1.Text );<br> qh:=mystrtoint(FlatComboBox2.Text );<br> jihao:= (jihao shl 4) or (qh shl 3) or (1);<br> s:=copy(FlatComboBox3.Text,1,2);<br> crc := $77+3+jihao+strtoint('$'+s);<br> scmd:=byte2hex(3)+byte2hex(jihao)+s+byte2hex(crc);<br> scmd:=byte2string($FA)+strtran(hex2string(scmd),#$FA,#$FA#$FA);<br> FlatEdit1.Text:=string2hex(scmd);
jihao:=mystrtoint(FlatComboBox1.Text );<br> qh:=mystrtoint(FlatComboBox2.Text );<br> jihao:= (jihao shl 4) or (qh shl 3) or (1);<br> s:=copy(FlatComboBox3.Text,1,2);<br> crc := $77+3+jihao+strtoint('$'+s);<br> scmd:=byte2hex(3)+byte2hex(jihao)+s+byte2hex(crc);<br> scmd:=byte2string($FA)+strtran(hex2string(scmd),#$FA,#$FA#$FA);<br> FlatEdit1.Text:=string2hex(scmd);
J jmlwz Unregistered / Unconfirmed GUEST, unregistred user! 2003-11-28 #8 jihao:=mystrtoint(FlatComboBox1.Text );<br> qh:=mystrtoint(FlatComboBox2.Text );<br> jihao:= (jihao shl 4) or (qh shl 3) or (1);<br> s:=copy(FlatComboBox3.Text,1,2);<br> crc := $77+3+jihao+strtoint('$'+s);<br> scmd:=byte2hex(3)+byte2hex(jihao)+s+byte2hex(crc);<br> scmd:=byte2string($FA)+strtran(hex2string(scmd),#$FA,#$FA#$FA);<br> FlatEdit1.Text:=string2hex(scmd);
jihao:=mystrtoint(FlatComboBox1.Text );<br> qh:=mystrtoint(FlatComboBox2.Text );<br> jihao:= (jihao shl 4) or (qh shl 3) or (1);<br> s:=copy(FlatComboBox3.Text,1,2);<br> crc := $77+3+jihao+strtoint('$'+s);<br> scmd:=byte2hex(3)+byte2hex(jihao)+s+byte2hex(crc);<br> scmd:=byte2string($FA)+strtran(hex2string(scmd),#$FA,#$FA#$FA);<br> FlatEdit1.Text:=string2hex(scmd);
2 2000寻欢 Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-05 #10 far类似与汇编的段间调用