Advertisement

12.01.2006 at 01:27PM PST, ID: 22079677
[x]
Attachment Details

GetProcAddress fails to load a function from a dll with  ERROR_PROC_NOT_FOUND when try to load from a diffrent path

Asked by Assaf_Gantz in Microsoft Visual C++.Net

Tags: error_proc_not_found, getprocaddress

I am try to load a function from a dll in run time.
I want to avoid the old version dll that is located first in the path and to load the newer version of the dll.
I am trying
      fnGetProcImFile = (LPFN_GETPROCIMAGEFILENAME)GetProcAddress(
                  GetModuleHandle("<PATH_4_Newer_LIB>\\psapi.dll"), "GetProcessImageFileNameA");

It is keep failing.
What should I do ?

10x
Assaf
Start Free Trial
[+][-]12.01.2006 at 10:33PM PST, ID: 18058884

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.04.2006 at 08:20AM PST, ID: 18069473

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.04.2006 at 08:29AM PST, ID: 18069544

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C++.Net
Tags: error_proc_not_found, getprocaddress
Sign Up Now!
Solution Provided By: AlexFM
Participating Experts: 1
Solution Grade: A
 
 
[+][-]12.04.2006 at 08:34AM PST, ID: 18069592

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32