Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loading a dll from a specific directory

0 views
Skip to first unread message

Rob

unread,
Jul 24, 2001, 7:32:12 PM7/24/01
to
I have a extension called my.dll that happens to exist in the bin
directory of tcl installation, and a different version also called
my.dll that exists in the current directory. I want to load the dll in
the current directory. But "load my.dll" always looks in the bin
directory first, and loads the dll from there. I don't want to remove
the dll from the bin directory, and I don'want to use package require.
I had hoped load ./my.dll would do it but it doesn't.

Bryan Oakley

unread,
Jul 24, 2001, 7:42:44 PM7/24/01
to
"Rob" <ravog...@aol.com> wrote in message
news:9818ebd.01072...@posting.google.com...

The answer is as close as the load man page:

When loading a DLL in the current directory, Windows will ignore "./" as a
path specifier and use a search heuristic to find the DLL instead. To avoid
this, load the DLL with

load [file join [pwd] mylib.DLL]


0 new messages