How can I use the same objects in VB 6.0 as in VB.NET?

How can I use the same objects in VB 6.0 as in VB.NET?

Post by P » Fri, 24 Oct 2003 19:30:29


Hi,

I am developing a VB.NET .exe that I want to communicate
with a VB 6.0 COM add in. in this process I need to send
data between the two. In the VB.NET application I have
made some of my own objects. Some of these objects I
would like to send to the addin so that it can do some
work on them and then return them. Is this possible? Can
I implement these classes into VB 6.0?

Best regards
p Eilertsen
 
 
 

How can I use the same objects in VB 6.0 as in VB.NET?

Post by Dmitriy La » Fri, 24 Oct 2003 21:03:20

Hi Pel,

VB6 and .NET objects can talk to each other if they are COM objects. VB6
ones are COMs by default and you can easily expose the .NET ones through COM
interop. Bear in mind that you should use Dual interfaces in .NET objects.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.yqcomputer.com/
Bring the power of unit testing to VS .NET IDE



Hi,

I am developing a VB.NET .exe that I want to communicate
with a VB 6.0 COM add in. in this process I need to send
data between the two. In the VB.NET application I have
made some of my own objects. Some of these objects I
would like to send to the addin so that it can do some
work on them and then return them. Is this possible? Can
I implement these classes into VB 6.0?

Best regards
p?l Eilertsen

 
 
 

How can I use the same objects in VB 6.0 as in VB.NET?

Post by hirf-spam- » Sat, 25 Oct 2003 05:06:26

* P < XXXX@XXXXX.COM > scripsit:

< http://www.yqcomputer.com/ ;

--
Herfried K. Wagner
MVP VB Classic, VB.NET << http://www.yqcomputer.com/ ;>