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 / July 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eblaster - 16 Jul 2007 00:30 GMT
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

Rate this thread:







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.