Link to home
Start Free TrialLog in
Avatar of Indarnav
Indarnav

asked on

mpr.dll

i made few exes, when i use dependency walker to know dependency files for my exes, i got attached screen . please guide why this error is coming.

i used dependency walker after installing vc2008 redistributable pack. code has been written in vc2008. tested on xp sp1.

1.JPG
Avatar of jkr
jkr
Flag of Germany image

I'll just quote http://www.dependencywalker.com/faq.html - basically this Dependency Walker warning shows up on any modern Windows .EXE or .DLL, ignore it.


Q: Why am I seeing a lot of applications where MPR.DLL shows up in red under SHLWAPI.DLL because it is missing a function named WNetRestoreConnectionA? I also get a "Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module" message.
 
A: Some versions of SHLWAPI.DLL (like the one on Windows XP) have a delay-load dependency on the function WNetRestoreConnectionA in MPR.DLL. Missing delay-load functions are not a problem as long as the calling DLL is prepared to handle the situation. Dependency Walker flags all potential problems as it cannot detect if an application intends to handle the issue. In the case of SHLWAPI.DLL, this is not an problem as it does not require WNetRestoreConnectionA to exist and handles the missing function at runtime. This warning can be ignored. See the "How to Interpret Warnings and Errors in Dependency Walker" section in help for more details.

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Indarnav
Indarnav

ASKER

so, it does not affect exe functionality. and exe will run .. there is no need to replace mpr.dll with newer version?
No, not at all. Just ignore this message as the DependencyWalker's FAQ suggests: "[...] this is not an problem as it does not require WNetRestoreConnectionA to exist and handles the missing function at runtime. This warning can be ignored."
as u said warning can be ignored, it means i need not to amend code? in case code need to be edit then what changes should i make?
Well, if you want, leave a comment in your code that this warning acn be ignored - but that's pretty much all that you can do about that anyway...
i do not want to leave this comment unattended, please guide how to remove this warning? why this is there?
It is there because of a situation that this application cannot detect - and that is 'dynamic linking'. As the DependencyWalker's FAQ imply, I'd leave something like "this is not an problem as it does not require WNetRestoreConnectionA to exist and handles the missing function at runtime. This warning can be ignored.""
ok.
Um, thanks, but why a 'B' after holding you hand over the same thing over and over again? I hit right the head of the nail of your problem in my first comment. What else is it that you'd have expected?
sorry, i can change that, is it possible?
thanks..