Click here to Skip to main content
15,914,481 members
Home / Discussions / COM
   

COM

 
GeneralUI Pin
koteswara25-Oct-00 1:55
koteswara25-Oct-00 1:55 
GeneralPassing Object Pointers In COM Pin
Adrian Metcalfe25-Oct-00 1:23
Adrian Metcalfe25-Oct-00 1:23 
GeneralRe: Passing Object Pointers In COM Pin
Peter Zajac26-Oct-00 3:52
Peter Zajac26-Oct-00 3:52 
GeneralRe: Passing Object Pointers In COM Pin
Adrian Metcalfe26-Oct-00 4:18
Adrian Metcalfe26-Oct-00 4:18 
GeneralRe: Passing Object Pointers In COM Pin
22-Jul-01 6:03
suss22-Jul-01 6:03 
GeneralRe: Passing Object Pointers In COM Pin
Peter Zajac26-Oct-00 3:59
Peter Zajac26-Oct-00 3:59 
GeneralRe: Passing Object Pointers In COM Pin
Adrian Metcalfe26-Oct-00 4:19
Adrian Metcalfe26-Oct-00 4:19 
GeneralRe: Passing Object Pointers In COM Pin
Michael Dunn26-Oct-00 19:33
sitebuilderMichael Dunn26-Oct-00 19:33 
>I wish to take a pointer to a C++ object from one application and pass it via COM to another C++ application.

You cannot do this, COM or no COM. Each Win32 app has its own isolated memory space. A pointer in app A has no meaning if you pass it to app B.

You'll need to use IPC (inter-process communication) techniques to pass data between apps. There are articles here at CP on doing this - give them a read. (You are sort-of on the right track with CMemFile, but CMemFile is not a memory-mapped file, which is the IPC mechanism you're thinking of.)
GeneralRe: Passing Object Pointers In COM Pin
Todd Smith22-Jul-01 7:05
Todd Smith22-Jul-01 7:05 
GeneralRe: Passing Object Pointers In COM Pin
Adrian Metcalfe23-Jul-01 0:09
Adrian Metcalfe23-Jul-01 0:09 
GeneralRe: Passing Object Pointers In COM Pin
Todd Smith23-Jul-01 8:47
Todd Smith23-Jul-01 8:47 
GeneralRe: Passing Object Pointers In COM Pin
Todd Smith23-Jul-01 8:48
Todd Smith23-Jul-01 8:48 
GeneralRe: Passing Object Pointers In COM Pin
Adrian Metcalfe23-Jul-01 21:14
Adrian Metcalfe23-Jul-01 21:14 
GeneralExit from MMC Pin
Seafullux23-Oct-00 22:29
Seafullux23-Oct-00 22:29 
GeneralRe: Exit from MMC Pin
8-Jan-01 0:24
suss8-Jan-01 0:24 
GeneralRe: Exit from MMC Pin
8-Jan-01 0:29
suss8-Jan-01 0:29 
GeneralDCOM SECURITY Pin
narnerao23-Oct-00 20:23
narnerao23-Oct-00 20:23 
QuestionHow to setup a COM in-proc server for call from remote machine ? Pin
Do Quyet Tien22-Oct-00 16:22
Do Quyet Tien22-Oct-00 16:22 
GeneralInterface?! Pin
Adam20-Oct-00 21:25
Adam20-Oct-00 21:25 
GeneralInterface?! Pin
Adam20-Oct-00 21:21
Adam20-Oct-00 21:21 
GeneralProblem registering OCX Pin
roger C19-Oct-00 11:52
roger C19-Oct-00 11:52 
QuestionDCOM...? Problem......? Pin
Bashir Irfan Malik19-Oct-00 4:14
Bashir Irfan Malik19-Oct-00 4:14 
GeneralInterfaces Pin
Gerry19-Oct-00 0:55
Gerry19-Oct-00 0:55 
GeneralRe: Interfaces Pin
Ezz Khayyat19-Oct-00 4:21
professionalEzz Khayyat19-Oct-00 4:21 
GeneralRe: Interfaces Pin
gbgf19-Oct-00 4:22
gbgf19-Oct-00 4:22 

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.