santosh wrote:
> Hi All ,
> I am facing a problem with LoadLibrary wherein , when i try to load my
> custom dll XYZ.dll from system32 it works fine. If i place the same
> dll in Program Files/Custom Folder/XYZ.dll and try to load it ,
> LoadLibrary fails with error number 0x7E meaning Moudule Not Found.
>
> I try to find out the dependencies , with Depends.exe and my custom
> dll XYZ.dll depends on dlls only from System32 meaning it doesn't
> depend on any other custom dlls.
>
> What might be the problem???
> Any help is greatly appreciated...
>
> -Santosh
> //KRLoadLibraryFails
Did you use the full path to the DLL in your call to LoadLibrary?
--
Scott McPhillips [VC++ MVP]