I wrote some fast matrix handling functions in VC++ and built them as a *.DLL. When you delcare the function that links to the DLL in VB you have to specify a string constant indicating the DLL's path name.

When I distribute this program I want the DLL file to be in the application directory. How do you declare a function to a DLL with a variable path name?

I want something like this (note this does not work)

Declare Sub MyFunction Lib App.Path & "\MyFunc.dll" alias...