Forum

× General Purpose Components and Libraries, discussions, problems and suggestions

file Question OnGuard components error

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
11 months 3 weeks ago - 11 months 3 weeks 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
Last edit: 11 months 3 weeks ago by Nicola.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
11 months 3 weeks ago #11065 by Sternas Stefanos
Replied by Sternas Stefanos on topic OnGuard components error
Thanks Sir
we will try to fix this

CodeTyphon Architect and Programmer

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

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
11 months 3 weeks ago #11067 by Nicola
Replied by Nicola on topic OnGuard components error
Thanks Sir
I'm confident.

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

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
10 months 5 days 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

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
10 months 5 days ago #11182 by Sternas Stefanos
Replied by Sternas Stefanos on topic OnGuard components error
Sir
please give us time to solve this problem

-Did you test CodeTyphon 6.30 ?

CodeTyphon Architect and Programmer

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

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
10 months 4 days ago #11185 by Nicola
Replied by Nicola on topic OnGuard components error
Yes, I tested with CT 6.30 but I have the same error.
I attach the error.
Attachments:

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
10 months 4 days ago #11186 by Sternas Stefanos
Replied by Sternas Stefanos on topic OnGuard components error
please give us time to solve this problem..

CodeTyphon Architect and Programmer

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

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
10 months 3 days 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
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
10 months 1 day ago - 10 months 1 day ago #11196 by Sternas Stefanos
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... :)

CodeTyphon Architect and Programmer
Attachments:
Last edit: 10 months 1 day ago by Sternas Stefanos.

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

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
10 months 1 day ago - 10 months 1 day 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
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: 10 months 1 day ago by Nicola.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
10 months 1 day ago #11198 by Sternas Stefanos
Replied by Sternas Stefanos on topic OnGuard components error
Thanks Sir
we will add your suggestions to CodeOcean

CodeTyphon Architect and Programmer

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