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

COM

 
GeneralIApplication woes Pin
AndyP12-Oct-03 0:36
AndyP12-Oct-03 0:36 
GeneralRe: IApplication woes Pin
AndyP12-Oct-03 5:16
AndyP12-Oct-03 5:16 
GeneralAn Outlook plug-in issue Pin
dorutzu1-Oct-03 8:04
dorutzu1-Oct-03 8:04 
GeneralRe: An Outlook plug-in issue Pin
Mike Dimmick1-Oct-03 12:36
Mike Dimmick1-Oct-03 12:36 
GeneralRe: An Outlook plug-in issue Pin
dorutzu9-Oct-03 14:09
dorutzu9-Oct-03 14:09 
GeneralThread Pin
Anthony98871-Oct-03 3:55
Anthony98871-Oct-03 3:55 
GeneralRe: Thread Pin
billdwilson31-Oct-03 9:44
billdwilson31-Oct-03 9:44 
GeneralCOM-Marshaling-IUnknown as method param Pin
ceno1-Oct-03 3:29
ceno1-Oct-03 3:29 
3142.1

Hi everybody!

I have a problem with COM technology. Here it is:

I have two applications (let's say application A & B, c++ executable applications), and I need to run some methods of B application from A application. This is what I was succesfull at.

Here is the real problem:

I need to create some objects (dynamically) in my A application, (I was trying to inherite them from IUnknown) , and send them to application B (probably as an IUnknown), so I can use them as normal objects of the B application.

Can anybody help me with this?

Here is what I did:

I created client (A) as an client, and an B app. as an server. I have created some methods in B to see if it works (it worked), then I have created an object (X) in A app (inherited from IUnknown), and method in B app, that has an parameter LPUNKNOWN. In A app. I run this function of B's app, and I put there this X object as an parameter FunctionName((LPUNKNOWN)X);

The B app has recieved this X pointer as an IUnknown, and here comes the problem: in B app, I tried to get different interface of B object by QueryInterface function , but it returned me NULL!!! That's the problem..

Does anyone have some experience with it?




Ceno
GeneralAcrobat Distiller OLE/COM Automation Pin
HooK.NET1-Oct-03 1:49
HooK.NET1-Oct-03 1:49 
GeneralRe: Acrobat Distiller OLE/COM Automation Pin
Steve S1-Oct-03 3:12
Steve S1-Oct-03 3:12 
GeneralRe: Acrobat Distiller OLE/COM Automation Pin
HooK.NET1-Oct-03 3:29
HooK.NET1-Oct-03 3:29 
Generaltyplib marshalling or custom marshalling Pin
umarcool29-Sep-03 4:29
umarcool29-Sep-03 4:29 
QuestionHow to add a new protocol for Internet explorer? Pin
Robert Mao28-Sep-03 5:17
Robert Mao28-Sep-03 5:17 
AnswerRe: How to add a new protocol for Internet explorer? Pin
Tomas Petricek28-Sep-03 10:51
Tomas Petricek28-Sep-03 10:51 
GeneralQuestion about Com Process Pin
FeedFood27-Sep-03 0:01
sussFeedFood27-Sep-03 0:01 
GeneralRe: Question about Com Process Pin
umarcool29-Sep-03 19:14
umarcool29-Sep-03 19:14 
Generalunhandle exception using CreateDispatch Pin
danielferre26-Sep-03 2:04
danielferre26-Sep-03 2:04 
GeneralRe: unhandle exception using CreateDispatch Pin
Steve S26-Sep-03 4:34
Steve S26-Sep-03 4:34 
GeneralRe: unhandle exception using CreateDispatch Pin
danielferre26-Sep-03 6:12
danielferre26-Sep-03 6:12 
GeneralRe: unhandle exception using CreateDispatch Pin
jmkhael1-Oct-03 5:17
jmkhael1-Oct-03 5:17 
GeneralRe: unhandle exception using CreateDispatch Pin
danielferre1-Oct-03 5:27
danielferre1-Oct-03 5:27 
GeneralPlease help on sending text data efficiently Pin
FearlessBurner25-Sep-03 3:06
FearlessBurner25-Sep-03 3:06 
GeneralRe: Please help on sending text data efficiently Pin
valikac25-Sep-03 6:18
valikac25-Sep-03 6:18 
GeneralRe: Please help on sending text data efficiently Pin
Steve S25-Sep-03 22:33
Steve S25-Sep-03 22:33 
GeneralRe: Please help on sending text data efficiently Pin
FearlessBurner2-Oct-03 12:11
FearlessBurner2-Oct-03 12: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.