Variable Path for a dll

Hi All!I made a little dll. A Script detach the dll from the DB and afterwards the script will use it. The Problem is, that since XP, some Admin’s protect the Notes Programm Root. So I detach the dll in the Data Root.

My Question: How can I declare the function for the dll with a variable path in the Script Library Declarations?

Exp:

Declare Function DLLFunc Lib MYPATH&\mydll.dll" Alias “DoSomtehing” (a As Long, b As Long)

THANKS

Subject: Variable Path for a dll

I don’t believe it is possible.

If you don’t specify a path then I believe Notes will first check the current directory, and then the OS PATH for the dll when you first call the function.

You may be able to use this to your advantage by either changing the current directory (ChDir) or appending the Data directory to the OS PATH (via API).

HTH - Rufus.