[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

Passing objects from .NET wrapper to VB6 COM

nmasilamani

9/6/2007 3:30:00 PM

Hi,
I'm new to COM Interop. I need to pass custom objects from .NET
wrapper class to VB6 component. The .NET object contains various data
types. Basically something like "ID and Name" fields for one object
and the second object contains "id, name, alias, controltype,
required, defaultvalue, displaytype.."

I need to pass to VB COM and vice versa. Can somebody give some
idea of how to go about this? If you could provide some sample code
would be greatly appreciated.

Thanks in advance.
Mani

1 Answer

Patrick Steele

9/7/2007 2:16:00 AM

0

In article <1189092620.350562.63790@d55g2000hsg.googlegroups.com>,
nmasilamani@gmail.com says...
> Hi,
> I'm new to COM Interop. I need to pass custom objects from .NET
> wrapper class to VB6 component. The .NET object contains various data
> types. Basically something like "ID and Name" fields for one object
> and the second object contains "id, name, alias, controltype,
> required, defaultvalue, displaytype.."
>
> I need to pass to VB COM and vice versa. Can somebody give some
> idea of how to go about this? If you could provide some sample code
> would be greatly appreciated.

You need to set up the .NET object to look like a COM object. See:

http://www.15seconds.com/issue/...

--
Patrick Steele (patrick@mvps.org)
http://weblogs.asp.n...