Groups | Blog | Home
all groups > dotnet interop > april 2006 >

dotnet interop : VB6 app with .Net 1.1 and .Net 2.0 controls?



holysmokes99 NO[at]SPAM hotmail.com
4/26/2006 1:44:23 PM
I am working on a large project that currently is based primarily in
VB6. There are a number of .Net 1.1 assemblies that are used and
registered via regasm in the VB6 application. Is it possible to also
use 2.0 assemblies in the same VB6 app, or can only one .Net framework
be loaded at any time? If only one at a time, I guess the only way to
utilize the 2.0 framework in the application is to convert all the 1.1
assemblies to 2.0. I hope I don't need to do that.

Thanks,
Marcus
holysmokes99 NO[at]SPAM hotmail.com
4/26/2006 3:21:27 PM
So the 2.0 CLR will run 1.1 assemblies as well? I did not know that.
How do I ensure that the 2.0 gets loaded and not the 1.1?

Thanks,
Marcus
Mattias Sjögren
4/26/2006 11:42:15 PM
[quoted text, click to view]

Only one version per process.


[quoted text, click to view]

No, you just have to make sure the 2.0 CLR gets loaded. It should run
the 1.1 assemblies as well.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Mattias Sjögren
4/27/2006 7:43:45 AM
[quoted text, click to view]

You can use a config file, just like for a managed application. See

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconconfiguringcomapplicationforside-by-sideexecution.asp


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button