Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2004

Tip: Looking for answers? Try searching our database.

Search order of DLLs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mphanke - 29 Jun 2004 12:54 GMT
Hi,

I have a question concerning the search order of DLLs and whether I can
take influence on how they are loaded.

The following is my situation:

I have a plugin design for my application. It is stand alone if compiled
as exe, a plugin if compiled as dll.

If compuled as plugin I would like to install the application to a path
like x:\somewhere\HostApp\Plugins\PlugIn1. So far no problem, but if I
load the plug1.dll it has dependencies, which are not found in the
HostApp directory, and not somewhere else on the system, because they
are in .\Plugins\PlugIn1. Is there a way I can change that
programmatically?

Any solution is apreciated,

Martin
"Gary Chang" - 30 Jun 2004 06:18 GMT
Hi Martin,

If your plugin loads its dependent dll explicitly, how about use the
GetModileFileName(...) to get the plugin's directory, when handling the
DLL_PROCESS_ATTACH event within the DllMain function?

Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.