Post by LUISIs there a way to protect DBC to be accessed by an undesired user?
Is there some kind password for DBC access?
As suggested you can restrict access to a data directory
with windows file system security.
This thought can be extended:
-Define a special User for data access
Give the needed directory permissions
only to this user (and perhaps an admin)
-Let your application "impersonate" this user,
so the application works as this user, although
no real user will need any directory permissions.
Needed API calls are LogonUser,
ImpersonateLoggedOnUser, WNetGetUser,
RevertToSelf and CloseHandle.
Your application needs to store Username and
password information for that data access user.
This is still a risk due to the decompilability of fox
code. But you have the encryption capabilities of
the windows API for that remaining problem: you
can store the user/password encrypted.
How it works is described in Detail in an article
from the "Loseblattsammmlung FoxX Professional"
from the german foxuser group (www.dfpug.de)
It's quite probable, that the original author can
help you on that subject and pass on the needed
code.
To prevent spamming, here's foxcode to show
his mailadress. You should be able to run it. If
you are in the decision phase about using foxpro
at all you could at least decode the mail adrees
with the freely available foxpro 9 public beta:
_cliptext =;
Strconv("YWxmLmJvcnJtYW5uQGFzY2ktY29uc3VsdGluZy5jb20",14)
Bye, Olaf.