Compiling Unmanaged C++ Code

R

Rob Jehan

Hi

I'm trying to construct a Global Hook and need to create an unmanaged C++
DLL. I'm really new to this and Ive created a C++ Win32 project in VS 2005.

Firstly, can you create an unmanaged DLL in VS 2005?
Is this the correct classification of project to create an unmanaged DLL
(should it be an MFC project) ?
Dependency Walker is showing a missing reference to DWMAPI.DLL (and MPR.DLL
AND SHLWAPI.DLL) with a warning 'Warning: At least one delay-load dependency
module was not found.'
Do I need to change compiler or linker options?

thanks in advance
Rob
 
D

David Lowndes

Firstly, can you create an unmanaged DLL in VS 2005?

Yes.
Is this the correct classification of project to create an unmanaged DLL
Yes

(should it be an MFC project) ?

Probably not. There's unlikely to be anything advantageous in MFC
(that you can't use anyway without it being an MFC project) for a
global hook DLL.
Dependency Walker is showing a missing reference to DWMAPI.DLL (and MPR.DLL
AND SHLWAPI.DLL) with a warning 'Warning: At least one delay-load dependency
module was not found.'
Do I need to change compiler or linker options?

I don't think so. Provided your DLL doesn't try to call any functions
which would be in any not-present delay-loaded DLLs it shouldn't be an
issue.

Dave
 
R

Rob

Thank you Dave.

My application ran happily even with the missing reference. Thanks for all
the other responses.

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top