Is it possible to invoke a .net 2.0 dll (built using VS2005) from a .net 1.1
exe built using vs2003?
Thanks
Phill W. - 16 Jul 2007 15:09 GMT
> 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 - 30 Jul 2007 03:55 GMT
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
> Is it possible to invoke a .net 2.0 dll (built using VS2005) from a .net
> 1.1 exe built using vs2003?
> Thanks