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 / .NET Framework / Interop / February 2006

Tip: Looking for answers? Try searching our database.

How do i create a mixed mode DLL with MFC, ATL, CLR

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
n.prabhakar@gmail.com - 10 Feb 2006 08:50 GMT
Hi,

How do i create a mixed mode DLL which supports all three - MFC, ATL
and CLR.

I have gone through the link <a
href="http://msdn2.microsoft.com/en-us/library/ms235211.aspx">http://msdn2.microsoft.c
om/en-us/library/ms235211.aspx</a
>

I have tried various combinations of the steps described on this page,
but they desribe only either MFC, or ATL, not both together.

I am having some problems with the header files and am not sure what to
put in the STDAFX.h file. Do all the ATL/MFC header declarations go
into this file?

I first got my DLL to compile only with classes that need ATL. Then I
declared the header that uses MFC classes as well. When i did this, i
got the <Windows.h> is already included error.

WINDOWS.H already included.  MFC apps must not #include <windows.h>

I tried certain things like creating an MFC DLL, an ATL DLL and copying
the stdafx.h declarations from all of them and also the various options
mentioned in the link above, but without success.

I will be able to proceed even if i am able to include ATL and MFC in
the same project, but did have much with this either.
dnebeker - 25 Feb 2006 21:52 GMT
Before you go to far, make sure you're using VC 2005 and .NET 2.0.  If you
are using .NET 1.1 there are deadlocks when using mixed-mode DLL (search for
"Mixed DLL Loading Problem" on MSDN, and there are many other articles about
it as well)

> Hi,
>
[quoted text clipped - 23 lines]
> I will be able to proceed even if i am able to include ATL and MFC in
> the same project, but did have much with this either.

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.