Hello,
I can not find anywhere a working example to:
begin
WriteRegStr(4, “SOFTWARE\Example”,“Name”,Value);
end;
function RegR: String;
begin
Result := ReadRegStr(4, “SOFTWARE\Example”,“Name”,“empty”);
end;
But I get a RUNTIME ERROR File library UserMain.hex: Cannot install into registry.
Key: SOFTWARE\Example Ident: Name Value John when evaluating instruction…
What am I missing here? Could you please show me a working example on this?
Thank you very much!
Liviu
I can not find anywhere a working example to:
- create a registry key (ex. “HKEY_LOCAL_MACHINE” -> “SOFTWARE\Example”)
- write a string (ex. “Name” -> “John”)
- then read that string
index.php:
<?php $name="John"; exo_runhescriptcom ("UserMain.RegW|$name"); echo exo_return_hescriptcom("UserMain.RegR"); ?>HEScript UserMain:
procedure RegW(Value: String);begin
WriteRegStr(4, “SOFTWARE\Example”,“Name”,Value);
end;
function RegR: String;
begin
Result := ReadRegStr(4, “SOFTWARE\Example”,“Name”,“empty”);
end;
But I get a RUNTIME ERROR File library UserMain.hex: Cannot install into registry.
Key: SOFTWARE\Example Ident: Name Value John when evaluating instruction…
What am I missing here? Could you please show me a working example on this?
Thank you very much!
Liviu
