Check for Exe file running?

  • Thread starter Thread starter peg
  • Start date Start date
P

peg

I'm creating a VB exe that will open up the Access MDE for my user. I'm
using the new Hexalock technology that once my EXE has been put thru their
lock utility, when the user runs the exe from their local drive - it checks
for a copy of the hexalock CD in their drive. The cd's are not able to be
copied, so this takes care of piracy issues.

ANYHOW what i want to do is put coding into the MDE that checks for the EXE
running on the system (to make sure the user doesn't bypass the exe to run
the access app). Any ideas on how to do this within Access??
 
Peg,

You cannot edit an MDE for design changes (other than tables and queries,
IIRC); you will need to have the original MDB file in order to make code
changes and then recreate and distribute a new MDE.

hth,
 
It depends on how your VB program starts the database.

If it does it through Automation, maybe you could use the UserControl
property. (I don't have Access here to check, but I'm fairly sure that is a
property of the Access Application object.)

If it does it with ShellExecute (or similar), maybe the VB program could
create an object that the database could check for in its startup code?
Perhaps a file; or a logical lock >within< a file; or (let's go crazy) a
win32 mutex, or somesuch?

Whatever you do, the odds of any of this "taking care of piracy issues", are
fairly slim, IMHO. It will take care of such issues until 5 minutes after a
determined hacker turns their gaze towards your product!

HTH,
TC
 
Back
Top