windows - How to get the missing DLL name after when GetLastError() returns ERROR_MOD_NOT_FOUND -


my application loads dll using loadlibrary() suppressing standard critical-error-handler message box. when loadlibrary() fails , getlasterror() returns error_mod_not_found (0x7e) i'd retrieve missing dll name. error code set not when requested dll missing, but when dll depends on missing.

it's worth noting standard message box (which suppressed) displays correct missing dll name, , question how can within code.

thanks

i'm not sure there's easy way of getting missing dll's name. can find stepping through loadlibrary() in debugger , seeing function fails filename in parameters. depends.exe can show dependencies.

also, might worth try firing process monitor , using appropriate filters see i/o errors there in process , files.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -