Click here to Skip to main content
15,915,501 members
Home / Discussions / COM
   

COM

 
GeneralRe: Accessing COM component from JScript Pin
User 21559723-Jul-07 18:00
User 21559723-Jul-07 18:00 
GeneralRe: Accessing COM component from JScript Pin
PriyaJ.220623-Jul-07 19:08
PriyaJ.220623-Jul-07 19:08 
GeneralRe: Accessing COM component from JScript Pin
User 21559723-Jul-07 19:57
User 21559723-Jul-07 19:57 
GeneralRe: Accessing COM component from JScript Pin
PriyaJ.220623-Jul-07 19:58
PriyaJ.220623-Jul-07 19:58 
GeneralRe: Accessing COM component from JScript Pin
User 21559723-Jul-07 21:01
User 21559723-Jul-07 21:01 
GeneralRe: Accessing COM component from JScript Pin
PriyaJ.220623-Jul-07 21:08
PriyaJ.220623-Jul-07 21:08 
GeneralRe: Accessing COM component from JScript Pin
User 21559723-Jul-07 21:16
User 21559723-Jul-07 21:16 
QuestionPass user defined type array Pin
scheewie20-Jul-07 3:23
scheewie20-Jul-07 3:23 
Hi,

I'm trying to get a c# server component to pass a user defined type array to a VB6 client component through COM+. Is this possible with early binding?

I have created a c# component that works fine in COM (it passes bool, int etc). But when I try to pass a user defined type array, the array received in VB6 is empty (0 items), even tough I force the c# component to return at least one item in the array.

Heres my code:
C# function:
public MyType[] MyTypes()
{
MyType[] mt = {new MyType()};

return mt;
}

VB6 call:
Dim tool as MySpace.Tools
Dim retVal() as MySpace.MyType
Set tool = new MySpace.Tools

retVal = tool.MyTypes

Output UBound retVal gives 0 items.

Can't I pass arrays like this between C# and VB6 in COM+?
What is the solution to my problem?

Thanks in advance!

BR
Øivind
AnswerRe: Pass user defined type array Pin
sthotakura23-Jul-07 8:02
sthotakura23-Jul-07 8:02 
QuestionHow to include header file "Gdiplus.h" in IDL file Pin
Bidesh Mukherjee18-Jul-07 21:26
professionalBidesh Mukherjee18-Jul-07 21:26 
AnswerRe: How to include header file "Gdiplus.h" in IDL file Pin
User 21559719-Jul-07 20:44
User 21559719-Jul-07 20:44 
Questionwhich coclass in C# COM server is initialized? Pin
George_George17-Jul-07 21:26
George_George17-Jul-07 21:26 
Questionreturning array of BSTRs from the COM component Pin
Raj Prathap17-Jul-07 2:25
Raj Prathap17-Jul-07 2:25 
AnswerRe: returning array of BSTRs from the COM component Pin
Mike Dimmick17-Jul-07 2:52
Mike Dimmick17-Jul-07 2:52 
GeneralRe: returning array of BSTRs from the COM component Pin
Raj Prathap18-Jul-07 20:20
Raj Prathap18-Jul-07 20:20 
QuestionUnable to Start Exchange service Pin
Ashish Vasudev16-Jul-07 23:09
Ashish Vasudev16-Jul-07 23:09 
QuestionApartment (STA) mode before OLE calls Pin
MadmanWoo16-Jul-07 21:03
MadmanWoo16-Jul-07 21:03 
AnswerRe: Apartment (STA) mode before OLE calls Pin
User 21559716-Jul-07 22:58
User 21559716-Jul-07 22:58 
GeneralRe: Apartment (STA) mode before OLE calls Pin
MadmanWoo18-Jul-07 12:41
MadmanWoo18-Jul-07 12:41 
GeneralRe: Apartment (STA) mode before OLE calls Pin
User 21559719-Jul-07 19:44
User 21559719-Jul-07 19:44 
QuestionRegarding COM's Server type(DLL or EXE) Pin
Karismatic13-Jul-07 21:39
Karismatic13-Jul-07 21:39 
AnswerRe: Regarding COM's Server type(DLL or EXE) Pin
Mike Dimmick14-Jul-07 6:40
Mike Dimmick14-Jul-07 6:40 
QuestionI am getting 'ICaptureGraphBuilder2' : missing storage-class or type specifiers Pin
yaminisridaran12-Jul-07 19:43
yaminisridaran12-Jul-07 19:43 
QuestionHow to Generate OLE dispatch map functions Pin
KASR111-Jul-07 23:01
KASR111-Jul-07 23:01 
Questionsugest me the basic COM book with C#.Net Pin
help as an alias11-Jul-07 19:00
help as an alias11-Jul-07 19:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.