BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

specifying location of dll

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
mattk
Guest





PostPosted: Thu Nov 10, 2005 4:55 pm    Post subject: specifying location of dll Reply with 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?

I know how to do it in Delphi.

Thanks much for any help ....


Back to top
Bruce Salzman
Guest





PostPosted: Thu Nov 10, 2005 5:06 pm    Post subject: Re: specifying location of dll Reply with quote




"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





PostPosted: Thu Nov 10, 2005 5:24 pm    Post subject: Re: specifying location of dll Reply with quote




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





PostPosted: Thu Nov 10, 2005 5:34 pm    Post subject: Re: specifying location of dll Reply with quote


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





PostPosted: Thu Nov 10, 2005 6:07 pm    Post subject: Re: specifying location of dll Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.