Link to home
Create AccountLog in
Avatar of thready
thready

asked on

.manifest and .exp file

Hi Experts,
I just compiled OpenSSL for Visual Studio 2008 (which had to use the NASM and not the MASM approach by the way), and I noticed that ssleay.dll was created as well as 2 other files that I'm curious about.

Why was 'ssleay.dll.manifest' created?  More importantly, is it necessary for this file to reside in the same folder as the dll so that the exe 'knows' where to find it?  Is it even necessary?
Also, similarly, why was 'ssleay.exp' file created?

I read something recently about manifests - and that if you use LoadLibrary to load a dll, that if the manifest is not directly 'embedded' in the dll, that the LoadLibrary call will fail?  I don't know where I read this or if I remembered this wrong...  Just trying to better my understanding of manifests and I usually get the most concise best answers from the experts at Experts Exchange....

Best,
Mike
Avatar of jkr
jkr
Flag of Germany image

Check your build output. If there is a line that reads

Embedding manifest...

you don't need it at all, since it was embedded in the binary by the linker. And in order to do that, it has to be created (like .obj files), that's why you find it in that folder.
Avatar of thready
thready

ASKER

Hi jkr,

I know I don't need it - my question is more theoretical - just wondering what these manifests are for - and what are the things to worry about when doing LoadLibrary calls..

Mike
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account