HighTechTalks DotNet Forums  

Passing objects from .NET wrapper to VB6 COM

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Passing objects from .NET wrapper to VB6 COM in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
nmasilamani@gmail.com
 
Posts: n/a

Default Passing objects from .NET wrapper to VB6 COM - 09-06-2007 , 11:30 AM






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


Reply With Quote
  #2  
Old   
Patrick Steele
 
Posts: n/a

Default Re: Passing objects from .NET wrapper to VB6 COM - 09-06-2007 , 10:15 PM






In article <1189092620.350562.63790 (AT) d55g2000hsg (DOT) googlegroups.com>,
nmasilamani (AT) gmail (DOT) com says...
Quote:
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/040721.htm

--
Patrick Steele (patrick (AT) mvps (DOT) org)
http://weblogs.asp.net/psteele


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.