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

  • Thread starter Thread starter =?iso-8859-1?B?UOVs?=
  • Start date 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
 
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
 
* 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>
 
Back
Top