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++ / March 2006

Tip: Looking for answers? Try searching our database.

Mixed mode dll

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Asfar - 07 Mar 2006 20:59 GMT
I am having an error when compiling an C++/CLI application. This application
uses a dll MFC extended dll.

The error message is
Error 1 fatal error C1189: #error :  Building MFC application with /MD[d]
(CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or
do not use /MD[d] C:\Program Files\Microsoft Visual Studio
8\VC\atlmfc\include\afx.h 24

Can someone tell how to go about his?

Thanks,
-Asfar
Bruno van Dooren - 07 Mar 2006 21:20 GMT
>I am having an error when compiling an C++/CLI application. This
>application uses a dll MFC extended dll.
[quoted text clipped - 4 lines]
> or do not use /MD[d] C:\Program Files\Microsoft Visual Studio
> 8\VC\atlmfc\include\afx.h 24

in you project properties, change the 'Use of MFC'  to MFC in a shared dll.

Signature

Kind regards,
   Bruno.
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"

Asfar - 07 Mar 2006 21:34 GMT
I changed the project properties to use MFC in a shared dll for the C++/CLI
application. This was orignally set to Use Standard Windows Libraries.
It now gives a series of errors.
error C2872: 'FILETIME' : ambiguous symbol C:\Program Files\Microsoft Visual
Studio 8\VC\PlatformSDK\include\winbase.h 3496

> >I am having an error when compiling an C++/CLI application. This
> >application uses a dll MFC extended dll.
[quoted text clipped - 7 lines]
> in you project properties, change the 'Use of MFC'  to MFC in a shared
> dll.
Bruno van Dooren - 08 Mar 2006 20:25 GMT
>I changed the project properties to use MFC in a shared dll for the C++/CLI
>application. This was orignally set to Use Standard Windows Libraries.
> It now gives a series of errors.
> error C2872: 'FILETIME' : ambiguous symbol C:\Program Files\Microsoft
> Visual Studio 8\VC\PlatformSDK\include\winbase.h 3496

Was your app an MFC app? or was it a regular app using an MFC dll? In that
case it is the dll that has to be compiled with MFC in a shared dll.

If your app was an MFC app i find it strange that it was set to use standard
windows libraries.
could you describe the situation with some more detail?

If you can make a small reproduction project you can mail it to me and I
will look at it.
My email address is below. do not forget to 'unmangle' it :-)

Signature

Kind regards,
   Bruno.
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


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.