Hi Przemek,

Thank you.
BTW This:
  #pragma TEXTHIDDEN=<nMethod>
also works.

Thanks, this looks better.

Now only <nMethod> = 0 (disable) and 1 works.
In the future we may add other methods.
Anyhow if you want to distribute some PCODE with hidden internals
then I suggest to generate .hrb file and encode it using some
stronger algorithm. Then at runtime you can simply load it by:

  static s_hrbHandle
  cHrbBody := memoread( cHrbFile )
  cHrbBody := my_decode( cHrbBody )
  s_hrbHandle := hb_hrbLoad( cHrbBody )

Now that you say this, and this is a bit
unrelated, I may use .hrb files to load
string translations. BTW, I very rarely
need to obfuscate strings, and it's only
just a few small strings, but this method
may be useful in the future. Thanks for
the tip.

Brgds,
Viktor

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to