siavoshkc

I've got a source code of a program that compiles and links. But doesn't execute with error:

Code Snippet

LDR: LdrpWalkImportDescriptor() failed to probe C:\WINDOWS\system32\alleg42.dll for its manifest, ntstatus 0xc0150002

alleg42.dll is one of the three files of the open source multimedia library which I've downloded seperately and copied to system32 folder as its document instructed.

Any help will be appreciated.





Re: Visual C++ General LDR Error

siavoshkc

I added this to my project global header but it wont execute. It says configuration is incorrect. It can't find alleg42.dll though it is in system32 folder. I also copied it in executive folder, still not working.

Code Snippet

#pragma comment(linker,"/manifestdependency:\"type='win32' name='alleg42.DLL' version='4.2.2.0' processorArchitecture='*' publicKeyToken='*' language='*'\"")






Re: Visual C++ General LDR Error

Bite Qiu - MSFT

If there is any DLL that alleg42.dll depends on is missing or, most likely, with incorrect version, then the load process will fail, you can verify the missing DLLs by dependency walker (depends.exe), if there is any, fix them. As an alternative, since it is an open source library, why not grab the source and build them with the same tool set as you are using for the application.