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

  • Thread starter =?iso-8859-1?B?UOVs?=
  • Start date
?

=?iso-8859-1?B?UOVs?=

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
 
D

Dmitriy Lapshin [C# / .NET MVP]

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://x-unity.miik.com.ua/teststudio.aspx
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
 
H

Herfried K. Wagner [MVP]

* Pål said:
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?

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top