PDA

View Full Version : Ocx And Dll Loading



cselik
01-13-2004, 04:47 AM
i know its a lame question:

what is the sequence of when loading dll's?
first the current folder, than the %path% or versa?
when is windows/system looked for dll's?
i mean if u have 2 dlls with same name which one is gonna be used?

Entity101
01-13-2004, 12:56 PM
current folder has priority above the windows system folder

Ariel_001
01-20-2004, 09:41 PM
try using Dependency Walker (http://www.dependencywalker.com/). you be surprise what dll get loaded sometimes

cselik
01-20-2004, 11:57 PM
Originally posted by Ariel_001@20 January 2004 - 21:41
try using Dependency Walker (http://www.dependencywalker.com/). you be surprise what dll get loaded sometimes
im suprized that it DOES NOT show dlls i wrote and i call from my apps, not even a helloworld dll, and for vb it shows only the msvb60 library, none of external calls.

anyway i think good way is try and run the app in clean win95 (first release), see what you're missing, and copy it to exe's folder. thatway i don't have to worry bout overwriting anything in win\sysyem

Ariel_001
01-21-2004, 03:29 PM
Originally posted by cselik+20 January 2004 - 23:57--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (cselik @ 20 January 2004 - 23:57)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Ariel_001@20 January 2004 - 21:41
try using Dependency Walker (http://www.dependencywalker.com/). you be surprise what dll get loaded sometimes
im suprized that it DOES NOT show dlls i wrote and i call from my apps, not even a helloworld dll, and for vb it shows only the msvb60 library, none of external calls.

anyway i think good way is try and run the app in clean win95 (first release), see what you&#39;re missing, and copy it to exe&#39;s folder. thatway i don&#39;t have to worry bout overwriting anything in win&#092;sysyem [/b][/quote]
Did you try profiling your app. Just opening the .exe does not always show all dll that get loaded in your app. (ie. Dll files that are loaded on demand/when needed like winamp plugins or printing in some app)