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 / April 2005

Tip: Looking for answers? Try searching our database.

Incompatibility between VC++6 MFC apps and .NET 2.0?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Clive Dixon - 27 Apr 2005 10:23 GMT
I have a Visual C++ 6 MFC app which uses .NET COM (built with 1.1) objects.
I have installed .NET 2.0 beta and now I find that CoCreateInstance crashes
when trying to create the .NET COM objects.

This is extremely easy to reproduce:
1) Install 2.0 beta.
2) Create an MFC Win app with VC++6.
3) Add code to create a .NET COM object when it runs.
4) Run.
5) Bang!

I can get round this by creating a .config file for my unmanaged app to set
supportedVersion to version 1.1 to force 1.1 to be used, but why is this
happening when using 2.0? Is there a known compatibility problem with C++6
MFC apps? Is there any workaround to enable 2.0 to be used alongside C++6
MFC apps?
Clive Dixon - 27 Apr 2005 11:02 GMT
Should add that the .NET COM object is not in the GAC. Another workaround
seems to be to install the assembly in the GAC.

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.