Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

OnGuard components error 7 years 1 month ago #11064

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Last edit: by Nicola.

OnGuard components error 7 years 1 month ago #11065

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4538
  • Thank you received: 1116
Thanks Sir
we will try to fix this
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

OnGuard components error 7 years 1 month ago #11067

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
Thanks Sir
I'm confident.

Please Log in or Create an account to join the conversation.

OnGuard components error 7 years 1 week ago #11181

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
Hi Mr Sternas, is there any chance of seeing this problem fixed in version 6.40?
Thank you

Please Log in or Create an account to join the conversation.

OnGuard components error 7 years 1 week ago #11182

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4538
  • Thank you received: 1116
Sir
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.

OnGuard components error 7 years 1 week ago #11185

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
Yes, I tested with CT 6.30 but I have the same error.
I attach the error.

Please Log in or Create an account to join the conversation.

OnGuard components error 7 years 1 week ago #11186

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4538
  • Thank you received: 1116
please give us time to solve this problem..
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

OnGuard components error 7 years 5 days ago #11190

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
Of course

Please Log in or Create an account to join the conversation.

OnGuard components error 7 years 4 days ago #11196

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4538
  • Thank you received: 1116
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... :)
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

OnGuard components error 7 years 3 days ago #11197

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
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
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

Please Log in or Create an account to join the conversation.

Last edit: by Nicola.

OnGuard components error 7 years 3 days ago #11198

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4538
  • Thank you received: 1116
Thanks Sir
we will add your suggestions to CodeOcean
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1