#pragma TEXTHIDDEN(1)

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 878
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 133 times
Been thanked: 228 times

#pragma TEXTHIDDEN(1)

Post by AUGE_OHR »

hi,

i found this in Code

Code: Select all

//produkcyjne srodowisko TEXTHIDDEN(1) zamaskowana zmienna
#pragma TEXTHIDDEN(1) 
i got a German Translation ...
Produktionsumgebung TEXTHIDDEN (1) maskierte Variable
but don´t understand what is it for :idea:
have fun
Jimmy

User avatar
mustafa
Posts: 972
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Been thanked: 190 times
Contact:

Post by mustafa »

Hi
So that it is not seen, example the
Password key

Code: Select all

*---------------------------------------------------------------------------------------* 
 #pragma TEXTHIDDEN(1) 
    PUBLIC  cSenha := "Q65h3l8j41B"        
 #pragma TEXTHIDDEN(0) 
*---------------------------------------------------------------------------------------*

Mustafa

User avatar
serge_girard
Posts: 2511
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 804 times
Been thanked: 154 times
Contact:

Post by serge_girard »

Jimmy,

using this:

Code: Select all

#pragma TEXTHIDDEN(1) 
PUBLIC  cSenha := "Q65h3l8j41B"        
#pragma TEXTHIDDEN(0) 
will make sure that one can not find this string and content in the EXE file.

Serge

User avatar
mustafa
Posts: 972
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Been thanked: 190 times
Contact:

Post by mustafa »

Hello friends
Sorry I left the EXE thing,
for example ' PUBLIC cSenha: = "Q65h3l8j41B" ' which
it would be the key of a password
Our friend Serge has indicated very well
Serge , You are the best !!! , :lol: :lol:
Virtual hugs :mrgreen:
Mustafa

PDE: view ==>> https://www.hmgforum.com/viewtopic.php? ... DEN#p59301

User avatar
serge_girard
Posts: 2511
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 804 times
Been thanked: 154 times
Contact:

Post by serge_girard »

Mustafa,

Virtual hugs for you too!

Serge

franco
Posts: 443
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 16 times

Post by franco »

I did not know this, Thank you`s
A old police programmer told me years ago If I use chr() codes they can not be found in exe so I have been using them.
This is much easier.
Old way for me .....PUBLIC cSenha := chr(49)+chr50)+chr(51)
New way .............PUBLIC cSenha := "123"
Thanks for info
Franco
All The Best,
Franco
Canada

User avatar
AUGE_OHR
Posts: 878
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 133 times
Been thanked: 228 times

Post by AUGE_OHR »

hi,
serge_girard wrote:
Sun May 17, 2020 7:14 am
will make sure that one can not find this string and content in the EXE file.
AHA , nice :D
THX
have fun
Jimmy

User avatar
serge_girard
Posts: 2511
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 804 times
Been thanked: 154 times
Contact:

Post by serge_girard »

Hi ,

Yes this is a GREAT feature !

Serge

Post Reply