Click here to Skip to main content
16,016,391 members
Home / Discussions / COM
   

COM

 
AnswerRe: Where I have to call CoUnInitialize function if I have COM interfaces in (MFC) application main class? Pin
Michael Dunn12-Oct-01 16:06
sitebuilderMichael Dunn12-Oct-01 16:06 
GeneralRe: Where I have to call CoUnInitialize function if I have COM interfaces in (MFC) application main class? Pin
Rula Ghabbiesh14-Oct-01 22:00
Rula Ghabbiesh14-Oct-01 22:00 
GeneralRe: Where I have to call CoUnInitialize function if I have COM interfaces in (MFC) application main class? Pin
Michael Dunn14-Oct-01 22:05
sitebuilderMichael Dunn14-Oct-01 22:05 
GeneralPassing a COM interface to an out of process COM object Pin
Jeremy Pullicino11-Oct-01 3:33
Jeremy Pullicino11-Oct-01 3:33 
GeneralRe: Passing a COM interface to an out of process COM object Pin
John Smith11-Oct-01 5:06
John Smith11-Oct-01 5:06 
GeneralRe: Passing a COM interface to an out of process COM object Pin
Shadi Al-Kahwaji11-Oct-01 5:30
Shadi Al-Kahwaji11-Oct-01 5:30 
GeneralRe: Passing a COM interface to an out of process COM object Pin
Marc Britten11-Oct-01 7:08
Marc Britten11-Oct-01 7:08 
GeneralRe: Passing a COM interface to an out of process COM object Pin
Jeremy Pullicino11-Oct-01 21:13
Jeremy Pullicino11-Oct-01 21:13 
I tied this (I am trying everything!)

Its the best results I got so far.

I pass the IUnkown* , and on the other side I queryinterface.

before passing IMyObject, I do this:

myObj.QueryInterface(IID_IUnknown,&pUnk);

Then I pass pUnk to IMyOtherObject.

This is how I do the queryinterface in IMyOtherObject:

pUnk->QueryInterface(__uuidof(IMyObj),reinterpret_cast _void**> &pMyObj))

However, when I queryinterface I get the error "The interface is unknown."

Am I doing it right?

Jeremy.

"Hey man, Taliban, Tali me Banana."
GeneralRe: Passing a COM interface to an out of process COM object Pin
Jeremy Pullicino11-Oct-01 22:44
Jeremy Pullicino11-Oct-01 22:44 
GeneralRe: Passing a COM interface to an out of process COM object Pin
13-Oct-01 15:39
suss13-Oct-01 15:39 
GeneralSysFreeString Pin
10-Oct-01 23:10
suss10-Oct-01 23:10 
GeneralRe: SysFreeString Pin
13-Oct-01 15:41
suss13-Oct-01 15:41 
GeneralDCOM security on XP Pin
Tim Smith9-Oct-01 13:02
Tim Smith9-Oct-01 13:02 
QuestionHow to add new icons to the existing ms-word application Pin
RamiReddy8-Oct-01 20:25
RamiReddy8-Oct-01 20:25 
AnswerRe: How to add new icons to the existing ms-word application Pin
Shadi Al-Kahwaji11-Oct-01 3:18
Shadi Al-Kahwaji11-Oct-01 3:18 
GeneralDCOM and ConnectionPoint Pin
Firoz8-Oct-01 2:31
Firoz8-Oct-01 2:31 
GeneralRe: DCOM and ConnectionPoint Pin
Rashid Thadha9-Oct-01 2:35
Rashid Thadha9-Oct-01 2:35 
GeneralRe: DCOM and ConnectionPoint Pin
Tim Smith9-Oct-01 13:03
Tim Smith9-Oct-01 13:03 
GeneralRe: Ok, here is the info... Pin
Tim Smith10-Oct-01 3:14
Tim Smith10-Oct-01 3:14 
GeneralRe: Ok, here is the info... Pin
Rashid Thadha10-Oct-01 10:30
Rashid Thadha10-Oct-01 10:30 
GeneralRe: Ok, here is the info... Pin
Tim Smith10-Oct-01 12:36
Tim Smith10-Oct-01 12:36 
GeneralThats Great , but a small problem... Pin
Firoz10-Oct-01 19:59
Firoz10-Oct-01 19:59 
GeneralRe: DCOM and ConnectionPoint Pin
Shadi Al-Kahwaji11-Oct-01 1:13
Shadi Al-Kahwaji11-Oct-01 1:13 
GeneralRe: DCOM and ConnectionPoint Pin
Firoz11-Oct-01 2:35
Firoz11-Oct-01 2:35 
GeneralCalling a COM object in an MFC exe Pin
Aza7-Oct-01 5:37
Aza7-Oct-01 5:37 

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.