无
无知者无畏
Unregistered / Unconfirmed
GUEST, unregistred user!
下面程序:<br> function WriteR(theHKEY: LongWord; Item, Name, Value: PChar): Integer;<br> var<br> I: LongWord;<br> begin<br> RegCreateKey(theHKEY, Item, I);<br> if Value <> nil then<br> RegSetValueEx(I, Name, 0, REG_SZ, Value, StrLen(Value));<br> Result := I;<br> end;<br>在DELPHI 3中可以通过,但<br>其中,RegCreateKey(theHKEY, Item, I);一句在DELPHI 5中却编译不过去,提示如下错误:<br><br>[Error] A.pas(119): Types of actual and formal var parameters must be identical<br><br>请问如何解决?<br>