[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

invoking .net2.0 dll from .net1.1 exe

eblaster

7/15/2007 11:30:00 PM

Is it possible to invoke a .net 2.0 dll (built using VS2005) from a .net 1.1
exe built using vs2003?
Thanks


2 Answers

Phill W.

7/16/2007 2:09:00 PM

0

eblaster wrote:

> Is it possible to invoke a .net 2.0 dll (built using VS2005) from a .net 1.1
> exe built using vs2003?

Not within the same process, no.

A 1.1 process cannot load a 2.0 dll, but a 2.0 process can [/usually/]
load a 1.1 assembly.

HTH,
Phill W.

Micky Duncan

7/30/2007 2:56:00 AM

0

Assuming that no UI is involved you could probably write a middleman to do
the job.
e.g.

..NET 1 --> COM out-of-process host (exe) --> .NET 2

The COM host could be a c++ with managed extenstions so that it could use
..NET types - such as in the ones in your .NET project.

Unfortunately this tactic gets very complex where user interfaces are
involved so I wouldn't recommend it.

Micky

"eblaster" <eblaster@newsgroup.nospam> wrote in message
news:uwoJegzxHHA.1484@TK2MSFTNGP06.phx.gbl...
> Is it possible to invoke a .net 2.0 dll (built using VS2005) from a .net
> 1.1 exe built using vs2003?
> Thanks
>