Click here to Skip to main content
15,908,175 members
Home / Discussions / COM
   

COM

 
QuestionAccessing constants via vb-script ? Pin
Brian van der Beek5-Jun-03 22:51
Brian van der Beek5-Jun-03 22:51 
AnswerRe: Accessing constants via vb-script ? Pin
Hans Ruck6-Jun-03 4:11
Hans Ruck6-Jun-03 4:11 
GeneralRe: Accessing constants via vb-script ? Pin
Anonymous6-Jun-03 4:24
Anonymous6-Jun-03 4:24 
GeneralRe: Accessing constants via vb-script ? Pin
Hans Ruck6-Jun-03 4:38
Hans Ruck6-Jun-03 4:38 
GeneralMarshalling Pin
act_x5-Jun-03 9:40
act_x5-Jun-03 9:40 
GeneralRe: Marshalling Pin
geo_m5-Jun-03 22:38
geo_m5-Jun-03 22:38 
GeneralRe: Marshalling Pin
act_x6-Jun-03 8:20
act_x6-Jun-03 8:20 
GeneralRe: Marshalling Pin
geo_m6-Jun-03 21:53
geo_m6-Jun-03 21:53 
1. Well, you can marshal only the COM interfaces, not normal classes. If I understood it correctly - the CBridge is a part of COM A. Then I'll keep the marshaling details inside the CBridge and call the CBridge methods as usual. When there's a need to return pointer to COM B from CBridge, it should be already marshaled.

2. No. The COM subsystem writes everything he needs inside the CoMarshal...

3. The third parameter is a pointer to pointer to the interface you want to unmarshal - this is the result of all the pain - marshaled interface Wink | ;) . You have to simply:
IMyInterface* ipInterface = NULL;<br />
CoUnmarshal( stream, RIID, (void**)&ipInterface );<br />
if( ok && ipInterface )<br />
   ipInterface->Method();


4. as any other pointer. The process is somehow transparent - the marshaled pointer looks exactly the same, only pointing to diferent object (some internal stuff of COM).


Only I would add, is that if you need behavior marshal once, unmarshal more times, you have to look at the GIT (as someone in thread mentioned). The read from IStream inside CoUnmarshal is destructive and you cannot use the IStream any more.

As the marshaling stuff is quite complicated, don't worry to ask more Wink | ;)
GeneralRe: Marshalling Pin
Hans Ruck6-Jun-03 2:09
Hans Ruck6-Jun-03 2:09 
GeneralGetting the width of a webbrowser frame Pin
John Oliver4-Jun-03 21:59
John Oliver4-Jun-03 21:59 
GeneralRe: Getting the width of a webbrowser frame Pin
John Oliver4-Jun-03 23:00
John Oliver4-Jun-03 23:00 
Questionhow to resolve this? Pin
safee ullah4-Jun-03 1:36
safee ullah4-Jun-03 1:36 
AnswerRe: how to resolve this? Pin
Anonymous4-Jun-03 4:39
Anonymous4-Jun-03 4:39 
GeneralRe: how to resolve this? Pin
safee ullah4-Jun-03 20:12
safee ullah4-Jun-03 20:12 
GeneralRe: how to resolve this? Pin
Anonymous5-Jun-03 0:16
Anonymous5-Jun-03 0:16 
GeneralRe: how to resolve this? Pin
safee ullah5-Jun-03 1:29
safee ullah5-Jun-03 1:29 
Generaldispinterface question Pin
Brian van der Beek3-Jun-03 21:40
Brian van der Beek3-Jun-03 21:40 
GeneralRe: dispinterface question Pin
pba_4-Jun-03 7:15
pba_4-Jun-03 7:15 
GeneralRe: dispinterface question Pin
Vi25-Jun-03 1:39
Vi25-Jun-03 1:39 
GeneralRe: dispinterface question Pin
Brian van der Beek5-Jun-03 2:07
Brian van der Beek5-Jun-03 2:07 
GeneralCOM+ Queued Components not working Pin
cfoley3-Jun-03 0:16
cfoley3-Jun-03 0:16 
GeneralIDataObject with delayed rendering Pin
jiang-lei2-Jun-03 22:44
jiang-lei2-Jun-03 22:44 
QuestionBuilding COM object for folder protection?? Pin
Lalit S. Rana2-Jun-03 19:49
Lalit S. Rana2-Jun-03 19:49 
AnswerRe: Building COM object for folder protection?? Pin
Anonymous3-Jun-03 10:16
Anonymous3-Jun-03 10:16 
GeneralRe: Building COM object for folder protection?? Pin
Anonymous3-Jun-03 18:24
Anonymous3-Jun-03 18:24 

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.