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 / Languages / VB 6.0 >>> VB.NET / January 2004

Tip: Looking for answers? Try searching our database.

Calling .NET code from VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil Penn - 14 Jan 2004 00:45 GMT
I need to be able to call some .NET code from an old VB application.

Looking around on MSDN it looks like I should expose the .NET code as a COM
object and access the COM object from Visual Basic.

Does anyone have any experience of doing this? Is this the best strategy or
is there another way to do it?

Thanks
Herfried K. Wagner [MVP] - 14 Jan 2004 11:01 GMT
* "Neil Penn" <neil.penn@btinternet.com> scripsit:
> I need to be able to call some .NET code from an old VB application.
>
[quoted text clipped - 3 lines]
> Does anyone have any experience of doing this? Is this the best strategy or
> is there another way to do it?

There is no other way to do that.  You will find a basic sample here:

<http://www.mvps.org/dotnet/dotnet/samples/codingtechnique/downloads/MyComLib.zip>

Signature

Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet

Richard K Bethell - 16 Jan 2004 14:59 GMT
> * "Neil Penn" <neil.penn@btinternet.com> scripsit:
> > I need to be able to call some .NET code from an old VB application.
[quoted text clipped - 6 lines]
>
> There is no other way to do that.  You will find a basic sample here:

<http://www.mvps.org/dotnet/dotnet/samples/codingtechnique/downloads/MyComLi
b.zip>

Actually there is one other way. You can make the .NET code a SOAP
webservice, and consume it in VB6 using the SOAP Toolkit 3.0.

http://msdn.microsoft.com/library/default.asp?URL=/downloads/list/websrv.asp

Richard

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.