Recent

Author Topic: Onguard Error App Compiling error  (Read 3761 times)

eldonfsr

  • Hero Member
  • *****
  • Posts: 574
Onguard Error App Compiling error
« on: February 17, 2023, 05:59:05 am »
Hi I start to lear about Onguard but when compile the app send error and also don;t show codegenform...


Soner

  • Sr. Member
  • ****
  • Posts: 328
Re: Onguard Error App Compiling error
« Reply #1 on: February 17, 2023, 09:34:56 am »
Look at the error message:
"Invalid value for property.".

It means there is a property or properties it doesn't more exist in your compiler or lazarus like Ctl3D in Delphi.
Open the forms in lazarus, switch to formdesigner, it shows you which property it is. When the property is not essential then you can choose ignore and continue loading or cancel loading and solve the problem.

When the property was not essential and you loaded the form then you must change something on the form to save the new version. Then recompile it.

Thaddy

  • Hero Member
  • *****
  • Posts: 18975
  • Glad to be alive.
Re: Onguard Error App Compiling error
« Reply #2 on: February 17, 2023, 10:32:29 am »
Are you compiling for 64 bit? Then you have a problem. A 64 bit version is known to be flawed.
Anyway, such old software is not really relevant anymore.
It is extremely easy to create a patch.
Basically the easiest way is to create a diff between full version and demo version and that works all the time:
Onguard does not leave out code....and where it tries to, the above circumvents this.
To a hacker, it is therefor useless. I used to use OllyDbg to determine what OnGuard does many moons ago and, for sure even the other possibilities are worthless.
Best way to circumvent this is simply to leave out code...(save file etc) and even then the patch option will work.
« Last Edit: February 17, 2023, 10:51:16 am by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: Onguard Error App Compiling error
« Reply #3 on: February 17, 2023, 12:40:11 pm »
Some forms of the OnGuard demos set the Font.Color to clText - this is not defined in Lazarus any more (maybe it once was, there are left-overs in unit Graphics). So, the solution is: Open the offending lfm file in an external editor, find "clText" and delete this line (Font.Color = clText) - you may want to delete alsothe other lines around this one because the forms use hard-coded windows fonts (usually the ugly "MS Sans-serif").

Or wait a bit, I am looking over the sample project and am trying to modernize them.

Thaddy

  • Hero Member
  • *****
  • Posts: 18975
  • Glad to be alive.
Re: Onguard Error App Compiling error
« Reply #4 on: February 17, 2023, 04:20:05 pm »
That is strange to remove the font.color := clText;
Of course then you also remove Delphi compatibility.
Who did that?

Anyway, as I explained, OnGuard has seen better days and maybe that should be removed...
It was really good while it lasted, though.
Nowadays it puts people on the wrong foot. That is not what you want.
Obfuscators are really evil and do not have a function. There are better ways to protect software.
« Last Edit: February 17, 2023, 04:24:09 pm by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

eldonfsr

  • Hero Member
  • *****
  • Posts: 574
Re: Onguard Error App Compiling error
« Reply #5 on: February 17, 2023, 04:26:22 pm »
Ok Thanks all for replay e, Tadd thanks i wait a lite for you changes...

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: Onguard Error App Compiling error
« Reply #6 on: February 17, 2023, 04:26:34 pm »
Cannot find a clText in the Delphi graphics sources. Anyway, it is removed from the lfm file only - Delphi cannot read lfm... And there are no dfm files at all in the ccr version. So, I don't care much about Delphi compatibility here anyway.

dsiders

  • Hero Member
  • *****
  • Posts: 1596
Re: Onguard Error App Compiling error
« Reply #7 on: February 17, 2023, 05:50:56 pm »
Cannot find a clText in the Delphi graphics sources. Anyway, it is removed from the lfm file only - Delphi cannot read lfm... And there are no dfm files at all in the ccr version. So, I don't care much about Delphi compatibility here anyway.

clText was from the aborted clx architecture.

Thaddy

  • Hero Member
  • *****
  • Posts: 18975
  • Glad to be alive.
Re: Onguard Error App Compiling error
« Reply #8 on: February 17, 2023, 06:02:06 pm »
clText was from the aborted clx architecture.
No! it was also at least in D7. clx was in that way cross-compatible. Actually quite good at the time. (I was a beta tester)
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: Onguard Error App Compiling error
« Reply #9 on: February 17, 2023, 06:17:09 pm »
Or wait a bit, I am looking over the sample project and am trying to modernize them.
Done. Fixed sample projects and uploaded to CCR. Either get the new version by means of svn, or download the zipped snapshot from https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/onguard/.

Did this on Laz/main+FPC3.2.2 on Win11 (32bit). However, the package does not compile with the 64-bit IDEs of Laz/main or Laz 2.2.4 (due to some 16-bit-like assembler code). And it does not compile either on Linux (64bit). So, this package really is of little use.

Then I tried Graeme's version (https://github.com/graemeg/onguard), and it is better, the 64-bit version on Windows now is working as well as the Linux version. (The sample projects must be taken from the CCR version, though). Maybe I should take the time to copy Graeme's code over to CCR?

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: Onguard Error App Compiling error
« Reply #10 on: February 17, 2023, 06:21:59 pm »
clText was from the aborted clx architecture.
No! it was also at least in D7. clx was in that way cross-compatible. Actually quite good at the time. (I was a beta tester)
Can't find "clText" in D7 either. In the OnGuard units "clText" is used only in the demo projects. Even if Delphi compatibility would be an aim, removing clText from the demo forms would not be a problem because Delphi would use the default propery value then.

eldonfsr

  • Hero Member
  • *****
  • Posts: 574
Re: Onguard Error App Compiling error
« Reply #11 on: February 18, 2023, 05:56:51 am »
Thanks i know you work hard and I appreciate your effort but when compile package send this error

ogutil.pas(357,3) Error: Unrecognized opcode LES

could be for 64 bits...
Thanks so much...and sorry for that..



wp

  • Hero Member
  • *****
  • Posts: 13489
Re: Onguard Error App Compiling error
« Reply #12 on: February 18, 2023, 07:31:38 pm »
The new version on CCR now works for 64-bit Windows and for Linux. It does not work for macOS (Graeme's version doesn't either).

Thaddy

  • Hero Member
  • *****
  • Posts: 18975
  • Glad to be alive.
Re: Onguard Error App Compiling error
« Reply #13 on: February 18, 2023, 08:15:41 pm »
pointless.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

rvk

  • Hero Member
  • *****
  • Posts: 6989
Re: Onguard Error App Compiling error
« Reply #14 on: February 18, 2023, 08:51:31 pm »
pointless.
Yep, just as pointless as you locking your house every night  ;)

(Good for the casual passersby)
« Last Edit: February 18, 2023, 08:53:53 pm by rvk »

 

TinyPortal © 2005-2018