Solved

mpr.dll

Posted on 2009-04-03
13
362 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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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 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 member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now