-
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...
-
I think that it might just be a problem with the DLL not being registered. I've never given the full path to a DLL file. It pulls that info from the registry once it is registered. Have the install auto-register the DLL. If you can't do that then you will have to register it using Regsvr32.exe.
Hope this helps.