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

Tip: Looking for answers? Try searching our database.

when to use com+

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wendy Elizabeth - 08 Sep 2005 21:44 GMT
I am basically new to the .net framework but I have experience working with
Visual Basic 6.0. I just started to work in a company where I am the only
programmer.
I am told that I will write new code in Visual Basic.NET and
will keep the old Viusal Basic 6.0 code the way it currently is.
If I need .NET to communicate with the Visual Basic 6.0 programs and/or if
I need the Visual Basic 6.0 programs to communicate with the Visual basic.net
programs I am wondering how I would do that?
Would I use COM, or DCOM?
Would I have vb 6.0 communicte with vb.NET by using the "Class libraries"
in .NET? I would use class libraries so that I could create DLLs.
 Thus would I use COM, DCOM, class libaries, and/or DLLs?
Thus would you let me know what the best way to do this is and what url's I
can use as a reference?

Thanks!
Mattias Sjögren - 09 Sep 2005 19:47 GMT
Wendy,

> If I need .NET to communicate with the Visual Basic 6.0 programs and/or if
>I need the Visual Basic 6.0 programs to communicate with the Visual basic.net
>programs I am wondering how I would do that?

COM interop is most likely the easiest way.

> Would I use COM, or DCOM?

Yes.

> Would I have vb 6.0 communicte with vb.NET by using the "Class libraries"
>in .NET? I would use class libraries so that I could create DLLs.

Yep

>  Thus would I use COM, DCOM, class libaries, and/or DLLs?

Yes, all of the above (well maybe not DCOM if the components are on
the same machine).

> Thus would you let me know what the best way to do this is and what url's I
>can use as a reference?

Here's the entry point for the relevant section of the .NET SDK docs

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconinteroperatingwithunma
nagedcode.asp


And here are links to a number of other COM interop related articles

http://www.dotnetinterop.com/articles.aspx#com

Mattias

Signature

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


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.