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

Tip: Looking for answers? Try searching our database.

COM interop - Framework Version

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick Hall - 17 Nov 2005 12:39 GMT
I've come across a bit of a problem since installing the 2.0 framework.  I
had created a class library using Visual Studio 2003, with one class
configured as a COM object.  The project was configured to launch a simple
Visual Basic 6.0 project which allowed me to create the object and call some
of its methods.

Previously, this worked seamlessly and was highly useful.  However, since
installing framework version 2.0 VB 6.0 is bombing out at the point of
creating the object (closing down, no errors or warnings, Visual Studio 2003
returns to Design mode).  Having dug in a bit further it seems that the
class is being instantiated in a 2.0 domain, which is presumably what is
killing the 2003 debugger.

Is there any way to configure which version of the framework is launched in
this scenario?  I do not believe there would be any particular issues with
the assembly running under 2.0 normally, but clearly if debugging is to work
it will need to run under 1.1 on my development machine.

Thanks,

Nick Hall
Mattias Sjögren - 17 Nov 2005 20:25 GMT
Nick,

>Is there any way to configure which version of the framework is launched in
>this scenario?

Yep, the easiest way is to use a config file for the VB6 app.

For other options, see the topic "Runtime Initialization from a COM
Application" in the docs.

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nick Hall - 18 Nov 2005 10:41 GMT
Thanks Mattias, I'll look into that

Nick Hall

> Nick,
>
[quoted text clipped - 8 lines]
>
> Mattias

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.