Briefly this is very straightforward if you use the Visual Studio IDE: you
only need to follow a couple of steps -
1. Set a reference to the VB6 Com component.
2. Use the COM class as you would any VB.NET class. (dim x as new
ComClass)
What's happening behind the IDE is that VB.NET creates a class that wraps
the COM class in a .Net class. This work well for most situations, but you
can run into some limitation if the COM class uses variants or strings.
Here's some references with specific examples.
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconmarshalingdatawithcominterop.asp
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconmarshalingdatawithcominterop.asp
Did this give you the info you needed?
--------------------
From: "JimM" <Ji**@hotmail.com>
Subject: Com interop
Date: Sat, 19 Mar 2005 17:58:33 -0800
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <u5*************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: adsl-67-117-145-73.dsl.snfc21.pacbell.net 67.117.145.73
Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGP08.phx.gbl!TK2MSFTNGP1
2.phx.gblXref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.vb:266275
X-Tomcat-NG: microsoft.public.dotnet.languages.vb
what do I need to use in vb.net to create an object as I do in vb6:
Dim o as Object
Set o = CreateObject("Class1.Test")
Thanks