Solved

mpr.dll

Posted on 2009-04-03
13
401 Views
Last Modified: 2012-08-13
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
0
Comment
Question by:Indarnav
  • 6
  • 6
13 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 24061930
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

0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 24061937
Ooops, that looks a bit odd in the code window. Here's the relevant section from the DependencyWalker FAQ again:

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.
0
 

Author Comment

by:Indarnav
ID: 24062330
so, it does not affect exe functionality. and exe will run .. there is no need to replace mpr.dll with newer version?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:jkr
ID: 24062365
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."
0
 

Author Comment

by:Indarnav
ID: 24065674
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?
0
 
LVL 86

Expert Comment

by:jkr
ID: 24065705
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...
0
 

Author Comment

by:Indarnav
ID: 24065790
i do not want to leave this comment unattended, please guide how to remove this warning? why this is there?
0
 
LVL 86

Expert Comment

by:jkr
ID: 24065823
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.""
0
 

Author Comment

by:Indarnav
ID: 24066269
ok.
0
 
LVL 86

Expert Comment

by:jkr
ID: 24069996
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?
0
 

Author Comment

by:Indarnav
ID: 24070217
sorry, i can change that, is it possible?
0
 

Author Comment

by:Indarnav
ID: 24083447
thanks..
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question