Any thoughts on security

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

edk
Posts: 999
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Any thoughts on security

Post by edk »

I cleaned up the code a bit and added some debugging information. I also attach executable files (compiled with HMG 3.6)
Record_2024_06_12_11_33_27_624-ezgif.com-optimize.gif
Record_2024_06_12_11_33_27_624-ezgif.com-optimize.gif (857.12 KiB) Viewed 1003 times
Attachments
RunAndKill.7z
(1.39 MiB) Downloaded 38 times
edk
Posts: 999
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Any thoughts on security

Post by edk »

Another example based on data exchange between different HMG applications using SendData() and GetGata().
Important: remember that the station names should not be the same as any file that exists or may appear in the current folder :!: Or use Set CommPath To <cPath> to define another common folder for both applications where the data will be stored.
Attachments
RunAndKill2.7z
(1.44 MiB) Downloaded 49 times
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Any thoughts on security

Post by serge_girard »

Thanks Edward !
There's nothing you can do that can't be done...
franco
Posts: 877
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Any thoughts on security

Post by franco »

Thanks again, I use 3.44.
I will check out new code and try in two of my programs . I am starting to understand your code.
All The Best,
Franco
Canada
franco
Posts: 877
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Any thoughts on security

Post by franco »

This one works when I compile with build.bat and 3.44.
The only thing I can not use info_() I had to change to msgbox().
I can work from this as the info is just for testing anyway.
All The Best,
Franco
Canada
franco
Posts: 877
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Any thoughts on security

Post by franco »

Can anyone help. I would like to know if I can build a program that gets the gps location of where ever I am at within a few kilometers.
Is it possible in HMG.
Thanks in advance.
All The Best,
Franco
Canada
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Any thoughts on security

Post by serge_girard »

Franco, I did this exercise in PHP then you can read HTML page into HGM program.

Serge
There's nothing you can do that can't be done...
franco
Posts: 877
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Any thoughts on security

Post by franco »

Thanks Serge, Is it big program in PHP and can I run the PHP out of HMG and then get the results.
I don`t know PHP.
All The Best,
Franco
Canada
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Any thoughts on security

Post by serge_girard »

Franco,

Try this:
https://girard-software.com/dbg_getloca ... NG=-123.10

LAT and LNG will come from the location where it is called (now hardcoded for example) and the result you can read with PRG. The result comes from my database. See picture.

Try with differnt LAT= &LNG= to see results. Let me know if this is what you mean.

Serge
Attachments
geo.png
geo.png (50.64 KiB) Viewed 639 times
There's nothing you can do that can't be done...
franco
Posts: 877
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Any thoughts on security

Post by franco »

Hi Serge,. No what I want is when a person opens my exe file for the first time My program checks the Log and Lat of where they open it.
Then I can have my exe write the number into itself, to check each time it is opened. It will only run at that location.
All The Best,
Franco
Canada
Post Reply