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

COM

 
QuestionWhere I have to call CoUnInitialize function if I have COM interfaces in (MFC) application main class? Pin
Rula Ghabbiesh11-Oct-01 5:42
Rula Ghabbiesh11-Oct-01 5:42 
AnswerRe: Where I have to call CoUnInitialize function if I have COM interfaces in (MFC) application main class? Pin
Shadi Al-Kahwaji12-Oct-01 9:05
Shadi Al-Kahwaji12-Oct-01 9:05 
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 
Hi,

If you cannot send the Interface becuase you don't find a data type to send it, then there is no problem. If you want to send IMyObject interface to IMyOtherObject interface, you have to define method to do this in IMyOtherObject like this:

STDMETHOD(SetIMyObjectInterface)(IMyObject *pMyObject);

The problem here that you might compile this using the .h and .c of the IMyObject, but you will face a problem inside the .IDL file, which is IMyObject is undeclared.

To solve this problem, move IMyOtherObject section in the IDL to the type library body:

library MYLIBLib
{
....
//Don't forget to import IMyObject type library here to define the IMyObject Interface

interface IMyOtherObject : IDispatch
{
SetIMyObjectInterface(IMyObject *pMyObject);
}
....
}

I guess this would help you to pass an com interface to another com component.

If this does not answer your question, please, re-phrase your question.

Regards,
ShadiK.

Shadi Al-Kahwaji
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 
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 

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.