Assaf_Gantz
asked on
GetProcAddress fails to load a function from a dll with ERROR_PROC_NOT_FOUND when try to load from a diffrent path
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 )GetProcAd dress(
GetModuleHandle("<PATH_4_N ewer_LIB>\ \psapi.dll "), "GetProcessImageFileNameA" );
It is keep failing.
What should I do ?
10x
Assaf
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
GetModuleHandle("<PATH_4_N
It is keep failing.
What should I do ?
10x
Assaf
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you it seems to do the trick
ASKER
I think it is due to the fact that this dll is already in use in the binary.
My main issue is that the dll that is being use is older and I need one of the newer function.
Is there any way to get this function from the newer dll that is located in a different location?
Please advise