Hi,
I have a menu application and a data application, the menu application launches the data application. In this way if I need to do a true-update then I only need replace the smaller data application.
Having said that, I don't want users to be able to launch the data application manually without the menu application launching it.
To achieve this I thought I could;
on button click in menu app
Application.SaveValue("AP_LICENSE_STATUS", "MONTH_END", "YES");
in the menu application and
onstartup in data app
licensed = Application.LoadValue("AP_LICENSE_STATUS", "MONTH_END");
if licensed=="NO" or licensed==null then
result = Dialog.Message("vifox.com Notice", "You are not licensed for this module.\r\nPlease click \"Purchase\" to buy now online.\r\nThank you for using FoxDocs.", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1);
Application.Exit(0);
else
end
on shutdown in data app
Application.SaveValue("AP_LICENSE_STATUS", "MONTH_END", "NO");
But of course the reason I'm here is that it doesn't work.
So I assume that Values stored during the session are only valid for the defining executable?
If so, is there another method that I could use to ensure that the sub-application cannot be launched other than from the menu app?
Remember, users are tricky, if I maintain an ini file or registry setting that is un-encrypted then within 10 minutes it will probably be a ***** on the internet somewhere.
Thanks in advance
Andy
I have a menu application and a data application, the menu application launches the data application. In this way if I need to do a true-update then I only need replace the smaller data application.
Having said that, I don't want users to be able to launch the data application manually without the menu application launching it.
To achieve this I thought I could;
on button click in menu app
Application.SaveValue("AP_LICENSE_STATUS", "MONTH_END", "YES");
in the menu application and
onstartup in data app
licensed = Application.LoadValue("AP_LICENSE_STATUS", "MONTH_END");
if licensed=="NO" or licensed==null then
result = Dialog.Message("vifox.com Notice", "You are not licensed for this module.\r\nPlease click \"Purchase\" to buy now online.\r\nThank you for using FoxDocs.", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1);
Application.Exit(0);
else
end
on shutdown in data app
Application.SaveValue("AP_LICENSE_STATUS", "MONTH_END", "NO");
But of course the reason I'm here is that it doesn't work.
So I assume that Values stored during the session are only valid for the defining executable?
If so, is there another method that I could use to ensure that the sub-application cannot be launched other than from the menu app?
Remember, users are tricky, if I maintain an ini file or registry setting that is un-encrypted then within 10 minutes it will probably be a ***** on the internet somewhere.
Thanks in advance
Andy
Comment