The short answer to this is no.

If you can’t guarantee where the DLL is going to be from system to system
(such as not knowing the system drive letter beforehand) while writing the
application, you should put each system’s path to the DLL in the PATH
environment variable for that system.  Then declare the sub or function
without specifying a path In the LIB clause.

Another alternative is to always put the DLL in the same directory as the
MBX.  Personally, over more than a decade of programming MapBasic, I’ve
never gotten DLLs to work consistently putting them anywhere else.

HTH
Spencer


________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Cornelius
Sent: Wednesday, June 14, 2006 4:24 PM
To: [email protected]
Subject: [MI-L] Dynamic dll locations

All,
Is there a way that I can dynamically declare which drive a dll is located
in mapbasic.  I have a function that is called like this:
 
declare function getelev lib "\custom_dlls\mathfunc.dll" (byval x as
float,byval y as float) as float
 
I want to add the system drive letter to this.
 
Thanks,
 
Jamie

 
James Cornelius, PE
clearw°re
Architecture and Technology Development
Office: 757-399-7140 | Mobile: 757-646-7891 | Fax: 757-399-7142 
307 High Street | Suite 200 | Portsmouth, VA 23704 
[EMAIL PROTECTED]
 



_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to