| View previous topic :: View next topic |
| Author |
Message |
mattk Guest
|
Posted: Thu Nov 10, 2005 4:55 pm Post subject: specifying location of dll |
|
|
Hello,
I have written a dll and a host to test with.
It seems to work well.
But I want to tell the host a specific location to find
the dll (so I can debug the dll).
Any clues?
I know how to do it in Delphi.
Thanks much for any help ....
|
|
| Back to top |
|
 |
Bruce Salzman Guest
|
Posted: Thu Nov 10, 2005 5:06 pm Post subject: Re: specifying location of dll |
|
|
"mattk >" <
| Quote: | Hello,
I have written a dll and a host to test with.
It seems to work well.
But I want to tell the host a specific location to find
the dll (so I can debug the dll).
Any clues?
|
In the DLL project, use Run|Parameters to specify the host
application.
--
Bruce
|
|
| Back to top |
|
 |
mattk Guest
|
Posted: Thu Nov 10, 2005 5:24 pm Post subject: Re: specifying location of dll |
|
|
Yes, that much I know.
This apparently tells the dll where the host is - but how do I tell the host
where the dll is?
When I start the host it says it can not find the dll.
If I put the dll in the host's folder it works.
How do I tell the host where to find the dll ?
" Bruce Salzman" <bruce (AT) nospam (DOT) org> wrote
| Quote: |
"mattk >" <
news:43737b6f$1 (AT) newsgroups (DOT) borland.com...
Hello,
I have written a dll and a host to test with.
It seems to work well.
But I want to tell the host a specific location to find
the dll (so I can debug the dll).
Any clues?
In the DLL project, use Run|Parameters to specify the host application.
--
Bruce
|
|
|
| Back to top |
|
 |
mattk Guest
|
Posted: Thu Nov 10, 2005 5:34 pm Post subject: Re: specifying location of dll |
|
|
Ok now every things works - after rebooting ....
" Bruce Salzman" <bruce (AT) nospam (DOT) org> wrote
| Quote: |
"mattk >" <
news:43737b6f$1 (AT) newsgroups (DOT) borland.com...
Hello,
I have written a dll and a host to test with.
It seems to work well.
But I want to tell the host a specific location to find
the dll (so I can debug the dll).
Any clues?
In the DLL project, use Run|Parameters to specify the host application.
--
Bruce
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Nov 10, 2005 6:07 pm Post subject: Re: specifying location of dll |
|
|
"mattk >" <
| Quote: | This apparently tells the dll where the host is - but how
do I tell the host where the dll is?
|
The only way is if the host explicitally loads the DLL at runtime via the
LoadLibrary() function. With that, you can specify the full path to the
DLL. Otherwise, there is no way to specify the DLL path for
implicitally-loaded DLLs. The path that is searched is dictated by the OS.
Please read the documetation for LoadLibrary() for details on where exactly
the OS searches for DLLs.
| Quote: | When I start the host it says it can not find the dll.
|
Then you did not place the DLL in a folder that is in the OS's search path.
| Quote: | If I put the dll in the host's folder it works.
|
The current folder of the executable is on the OS's search path.
| Quote: | How do I tell the host where to find the dll ?
|
The only way is via LoadLibrary().
Gambit
|
|
| Back to top |
|
 |
|