Using a DLL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using an encryption DLL file programatically from within Access 2003. I
have a few issues.
1. How to tell where the windows\system32 directory is located for placing
the DLL.
2. I distribute an upgrade version MDE from my website which is a zip file
of the front end and any additional files, which in this case would also be
AES.DLL. How would I get this to the correct directory.
3. I distribute an install version of my database created by Access 2003
developer extensions. I then zip the resulting files. The ADE lets me put
AES.DLL into a specific place, but it looks to only be a subfolder of the
installed program. How do I get the DLL into the correct place.

Maybe the last 2 of these can be solved by checking the system32 folder for
AES.DLL and if it is not there, then copy it there from the current
directory. If this is the way to go, I still need to programmitically
determine where the system32 folder resides.

Thanks for any input,
James Deckert
 
James,

I have never used developer extensions, but it is relatively easy to get
location of the folder you are after:

strSys32Folder = Environ$("WinDir") & "\system32"

The fact that AES.dll exists in the destination folder cannot guarantee that
your application will run - it may be an incompatible version or even not
registered at all. I am not sure how to solve that problem with developer
extensions

HTH
 
Back
Top