?
Solved

mpr.dll

Posted on 2009-04-03
13
Medium Priority
?
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Industry Leaders: 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

770 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