Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2007

Tip: Looking for answers? Try searching our database.

Compiling Unmanaged C++ Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Jehan - 24 Jun 2007 22:15 GMT
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
David Lowndes - 24 Jun 2007 23:07 GMT
>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
Rob - 25 Jun 2007 12:42 GMT
Thank you Dave.

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

Rob

> >Firstly, can you create an unmanaged DLL in VS 2005?
>
[quoted text clipped - 22 lines]
>
> Dave

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.