Click here to Skip to main content
15,887,596 members
Home / Discussions / COM
   

COM

 
GeneralAccessing IE via COM or ActiveX Pin
Dave Midgley1-Feb-04 7:52
Dave Midgley1-Feb-04 7:52 
GeneralRe: HTML control Pin
Anonymous3-Feb-04 22:09
Anonymous3-Feb-04 22:09 
Generalembedding activex control in outlook mail message Pin
emmatty1-Feb-04 3:53
emmatty1-Feb-04 3:53 
GeneralRe: embedding activex control in outlook mail message Pin
gialli1-Feb-04 19:24
gialli1-Feb-04 19:24 
Generalactivex control problem Pin
emmatty30-Jan-04 19:08
emmatty30-Jan-04 19:08 
GeneralRe: activex control problem Pin
AssemblySoft31-Jan-04 12:31
AssemblySoft31-Jan-04 12:31 
GeneralRe: activex control problem Pin
Jörgen Sigvardsson31-Jan-04 12:41
Jörgen Sigvardsson31-Jan-04 12:41 
QuestionPassing complex type through COM interface ? Pin
Alwin7530-Jan-04 12:50
Alwin7530-Jan-04 12:50 
Hi all,

Can anybody give me some pointers on how to pass the following
complex type through a COM interface ?

typedef struct ComplexType
{
  Type type;   // can be INT, BSTR, BYTE* etc.
  union
  {
    int intVal;
    BSTR strVal;
    BYTE* pbyteVal;
    AnotherComplexType* pcomplexVal;
  };
};


The real type contains different fields but you should get the
idea: it basically is just like a VARIANT only with more levels
of indirection.

I need to pass these structures between my COM component and
non-COM legacy code. Unfortunately, there is a threading issue
that causes a proxy and stub to be created even for in-process
deployment of my component, so simply passing a pointer doesn't
work.

Should I resort to custom marshalling ?

Kind regards,

Alwin!
AnswerRe: Passing complex type through COM interface ? Pin
Jörgen Sigvardsson30-Jan-04 13:00
Jörgen Sigvardsson30-Jan-04 13:00 
GeneralCOM+ Catalog Infomation Pin
kimsangwoo30-Jan-04 12:28
kimsangwoo30-Jan-04 12:28 
GeneralProblem with MIDL and Flash IDL Pin
gialli29-Jan-04 22:16
gialli29-Jan-04 22:16 
GeneralPassing variants in Fire_xxx methods Pin
Aby Philip28-Jan-04 4:38
Aby Philip28-Jan-04 4:38 
GeneralRe: Passing variants in Fire_xxx methods Pin
Lim Bio Liong29-Jan-04 4:24
Lim Bio Liong29-Jan-04 4:24 
GeneralCOM and _bstr_t Pin
Tzoockee27-Jan-04 1:05
Tzoockee27-Jan-04 1:05 
GeneralRe: COM and _bstr_t Pin
Steve S27-Jan-04 1:53
Steve S27-Jan-04 1:53 
GeneralDCOM: running COM-server on another PC Pin
Bash27-Jan-04 0:15
Bash27-Jan-04 0:15 
GeneralRe: DCOM: running COM-server on another PC Pin
Anonymous27-Jan-04 3:23
Anonymous27-Jan-04 3:23 
GeneralProblem with compiling samples of Iniside OLE Pin
Omar Alvi26-Jan-04 22:13
Omar Alvi26-Jan-04 22:13 
GeneralCOM: precompiled header in *_i.c files Pin
Bash26-Jan-04 7:55
Bash26-Jan-04 7:55 
GeneralRe: COM: precompiled header in *_i.c files Pin
Steve S26-Jan-04 22:27
Steve S26-Jan-04 22:27 
GeneralExtracting the Contents of IStorage Pin
Steve Thresher26-Jan-04 3:58
Steve Thresher26-Jan-04 3:58 
GeneralRe: Extracting the Contents of IStorage Pin
Anonymous30-Jan-04 10:34
Anonymous30-Jan-04 10:34 
GeneralCOM question Pin
Tzoockee26-Jan-04 2:29
Tzoockee26-Jan-04 2:29 
GeneralRe: COM question Pin
Steve S26-Jan-04 2:49
Steve S26-Jan-04 2:49 
GeneralRe: COM question Pin
Tzoockee26-Jan-04 3:11
Tzoockee26-Jan-04 3:11 

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.