Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Which dll loaded?



Permlink Replies: 2 - Last Post: Apr 18, 2018 12:20 AM Last Post By: Roy Lambert Threads: [ Previous | Next ]
Roy Lambert

Posts: 40
Registered: 10/21/99
Which dll loaded?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 17, 2018 6:55 AM
I was having a problem with an application. Eventually I worked out I had the wrong dll on the memory stick. The main problem was that on my development PC the test app worked.

Is there a way of reporting back which actual dll was loaded by a call to LoadLibrary?

Roy Lambert

Lajos Juhasz

Posts: 801
Registered: 3/14/14
Re: Which dll loaded?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 17, 2018 7:30 AM   in response to: Roy Lambert in response to: Roy Lambert
Roy Lambert wrote:

I was having a problem with an application. Eventually I worked out I
had the wrong dll on the memory stick. The main problem was that on
my development PC the test app worked.

Is there a way of reporting back which actual dll was loaded by a
call to LoadLibrary?


You can use:

http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.GetModuleFileName

or directly:

https://msdn.microsoft.com/en-us/library/ms683197(v=vs.85).aspx
Roy Lambert

Posts: 40
Registered: 10/21/99
Re: Which dll loaded?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 18, 2018 12:20 AM   in response to: Lajos Juhasz in response to: Lajos Juhasz
Lajos

Thanks - I'll have to go the direct route since I'm on D2006 still

Roy Lambert

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02