- Posts: 26
- Thank you received: 0
- Forum
- CodeTyphon Studio
- CodeTyphon Studio Components and Libraries
- General Purpose
- OnGuard components error
×
General Purpose Components and Libraries, discussions, problems and suggestions
Question OnGuard components error
- Nicola
- Topic Author
- Offline
- Junior Member
-
Less
More
3 years 4 months ago - 3 years 4 months ago #11064
by Nicola
OnGuard components error was created by Nicola
Hello,
I'm testing pl_onguard with the sample "regdemo" in CodeOcean.
Using rgc.exe to generate the Release Code I get a code like this: BF2A D4C2 2D26 E9CF0000
but when I go into registration.exe I get the following error: "Invalid Serial Number. Please check your entry and try again."
With an old version of onguard I do not have this problem.
I use CT32 6.20 on windows 10
A tip?
Thank you
I'm testing pl_onguard with the sample "regdemo" in CodeOcean.
Using rgc.exe to generate the Release Code I get a code like this: BF2A D4C2 2D26 E9CF0000
but when I go into registration.exe I get the following error: "Invalid Serial Number. Please check your entry and try again."
With an old version of onguard I do not have this problem.
I use CT32 6.20 on windows 10
A tip?
Thank you
Last edit: 3 years 4 months ago by Nicola.
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
3 years 4 months ago #11065
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic OnGuard components error
Thanks Sir
we will try to fix this
we will try to fix this
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Nicola
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 4 months ago #11067
by Nicola
Replied by Nicola on topic OnGuard components error
Thanks Sir
I'm confident.
I'm confident.
Please Log in or Create an account to join the conversation.
- Nicola
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 2 months ago #11181
by Nicola
Replied by Nicola on topic OnGuard components error
Hi Mr Sternas, is there any chance of seeing this problem fixed in version 6.40?
Thank you
Thank you
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
3 years 2 months ago #11182
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic OnGuard components error
Sir
please give us time to solve this problem
-Did you test CodeTyphon 6.30 ?
please give us time to solve this problem
-Did you test CodeTyphon 6.30 ?
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Nicola
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 2 months ago #11185
by Nicola
Replied by Nicola on topic OnGuard components error
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
3 years 2 months ago #11186
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic OnGuard components error
please give us time to solve this problem..
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Nicola
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 2 months ago #11190
by Nicola
Replied by Nicola on topic OnGuard components error
Of course
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
3 years 2 months ago - 3 years 2 months ago #11196
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic OnGuard components error
Sir
Finally ( I think) we fix the problem
One file with new pl_OnGuard 6.4.1 Library for Typhon IDE
and one file with new regdemo applications for CodeOcean
Please test, report and have fun...
Finally ( I think) we fix the problem
One file with new pl_OnGuard 6.4.1 Library for Typhon IDE
and one file with new regdemo applications for CodeOcean
Please test, report and have fun...

PilotLogic Architect and Core Programmer
Last edit: 3 years 2 months ago by Sternas Stefanos.
Please Log in or Create an account to join the conversation.
- Nicola
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 2 months ago - 3 years 2 months ago #11197
by Nicola
Replied by Nicola on topic OnGuard components error
Hi Mr. Sternas,
thanks for the speed of your answer.
I have tested the new version of onGuard.
I think, however, that you need to make small changes in the rcg_Main unit of the rcg.ctpr demo to work properly even when choosing an "Application Key" other than the default one.
The event to be changed is spdReleaseCodeClick which will be modified as follows
Thanks again for your great work
thanks for the speed of your answer.
I have tested the new version of onGuard.
I think, however, that you need to make small changes in the rcg_Main unit of the rcg.ctpr demo to work properly even when choosing an "Application Key" other than the default one.
The event to be changed is spdReleaseCodeClick which will be modified as follows
procedure TrcgMain.spdReleaseCodeClick(Sender: TObject);
var
Modifier : longint;
SerialNum : longint;
Expires : TDateTime;
ReleaseCode : TCode;
CodeString : string;
begin
edtReleaseCode.Text := '';
// Get the key that will be used to generate the ReleaseCode
fKey := ApplicationKey;
if chkMachMod.Checked then
try
Modifier := StrToInt(edtMachineMod.Text); <<============ Enable
ApplyModifierToKeyPrim(Modifier, fKey, sizeof(fKey)); <<=== Enable
// fKey:=MachineKey; <<============ Disable
except
MessageDlg('Invalid Machine Modifier. Please check your entry and try again.', mtError, [mbOK], 0);
exit;
end;
// Get the expiration date
if chkExpires.Checked then
try
Expires := StrToDate(edtExpires.Text);
except
MessageDlg('Invalid Expiration Date. Please check your entry and try again.', mtError, [mbOK], 0);
exit;
end
else
Expires := 0;
// Get the serial number
try
SerialNum := StrToInt(edtSerialNumber.Text);
except
MessageDlg('Invalid Serial Number. Please check your entry and try again.', mtError, [mbOK], 0);
exit;
end;
// Create the release code for the data givien
InitSerialNumberCode(fKey, SerialNum, Expires, ReleaseCode);
CodeString := BufferToHex(ReleaseCode, sizeof(ReleaseCode));
// Insert spaces in the release code string for easier reading
System.Insert(' ', CodeString, 17); <<===================== Add
System.Insert(' ', CodeString, 13);
System.Insert(' ', CodeString, 09);
System.Insert(' ', CodeString, 05);
edtReleaseCode.Text := CodeString;
end;
Thanks again for your great work
Last edit: 3 years 2 months ago by Nicola.
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
3 years 2 months ago #11198
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic OnGuard components error
Thanks Sir
we will add your suggestions to CodeOcean
we will add your suggestions to CodeOcean
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.