Click here to Skip to main content
15,891,777 members
Home / Discussions / COM
   

COM

 
QuestionHow to execute methods from ATL/COM base class Pin
Doug Knudson15-Oct-08 9:34
Doug Knudson15-Oct-08 9:34 
AnswerRe: How to execute methods from ATL/COM base class Pin
prasad_som16-Oct-08 4:59
prasad_som16-Oct-08 4:59 
GeneralRe: How to execute methods from ATL/COM base class Pin
Doug Knudson16-Oct-08 7:49
Doug Knudson16-Oct-08 7:49 
AnswerRe: How to execute methods from ATL/COM base class Pin
Mike Dimmick19-Oct-08 0:50
Mike Dimmick19-Oct-08 0:50 
GeneralRe: How to execute methods from ATL/COM base class Pin
Doug Knudson20-Oct-08 5:36
Doug Knudson20-Oct-08 5:36 
Questionproblem accessing .net dll from excel 2003 Pin
newbieNeeraj15-Oct-08 1:42
newbieNeeraj15-Oct-08 1:42 
GeneralInterface - Class Pin
Karri Mohan14-Oct-08 0:40
Karri Mohan14-Oct-08 0:40 
AnswerRe: Interface - Class Pin
Roger Stoltz14-Oct-08 1:42
Roger Stoltz14-Oct-08 1:42 
AnanyaMohan wrote:
I have an interface object say IMarkSet. I passed to an COM function. There i need to access a function which takes CMarkedSet .
^
|
v
How to convert interface object to its class?


The answer is really simple: you don't.

The reason may be a bit more complicated....
This is a design flaw either in your class or the interfaces it exposes and perhaps even a combination. This is all about abstraction and encapsulation.
A COM object/server exposes several interfaces that can be used to alter the behaviour and/or state of the server. Whatever the server is supposed to do, it must be possible to trigger it through the interfaces. Perhaps you need to query for another interface, or even implement an additional interface, but that's all right; it's supposed to work that way.
But how the server accomplishes its task is entirely up to the server and is encapsulated behind interfaces.

In short: you have to re-evaluate your design.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


AnswerRe: Interface - Class Pin
prasad_som16-Oct-08 5:01
prasad_som16-Oct-08 5:01 
QuestionVisual c++ in managed environment with Framework and no visualstudio Pin
balu1234513-Oct-08 21:48
balu1234513-Oct-08 21:48 
AnswerRe: Visual c++ in managed environment with Framework and no visualstudio Pin
alchong14-Oct-08 6:43
alchong14-Oct-08 6:43 
GeneralRe: Visual c++ in managed environment with Framework and no visualstudio Pin
balu1234514-Oct-08 7:11
balu1234514-Oct-08 7:11 
QuestionIt still gives "Unknown Publisher" error even after signing ActiveX control Pin
dharmesh@krishtechnologies.net8-Oct-08 23:22
dharmesh@krishtechnologies.net8-Oct-08 23:22 
QuestionReleasing CComPtr Pin
alchong8-Oct-08 13:34
alchong8-Oct-08 13:34 
AnswerRe: Releasing CComPtr Pin
Lim Bio Liong8-Oct-08 18:45
Lim Bio Liong8-Oct-08 18:45 
GeneralRe: Releasing CComPtr Pin
alchong9-Oct-08 5:57
alchong9-Oct-08 5:57 
QuestionDCOM Config Pin
Kipetcoff8-Oct-08 5:26
Kipetcoff8-Oct-08 5:26 
QuestionLaunch as interactive user Pin
SteveTheHalfB8-Oct-08 4:44
SteveTheHalfB8-Oct-08 4:44 
AnswerRe: Launch as interactive user Pin
SteveTheHalfB12-Oct-08 23:53
SteveTheHalfB12-Oct-08 23:53 
QuestionAssertion failed: _pAtlModule == 0 Pin
Christian Bayer6-Oct-08 6:51
Christian Bayer6-Oct-08 6:51 
QuestionRuns on Server, not on Workstations Pin
rahvyn133-Oct-08 6:32
rahvyn133-Oct-08 6:32 
QuestionHeaders created by MIDL, position of DECLSPEC_UUID Pin
Andreas Tondorf1-Oct-08 22:13
Andreas Tondorf1-Oct-08 22:13 
QuestionHow do I pass MySQL connection ID to COM using VC++ 9.0? Pin
Ger Hayden30-Sep-08 7:22
Ger Hayden30-Sep-08 7:22 
QuestionCOM add in for MS Office Outlook? Pin
maui_mike29-Sep-08 20:19
maui_mike29-Sep-08 20:19 
QuestionMMDeviceEnumerator registration problem Pin
punitkumar2629-Sep-08 13:09
punitkumar2629-Sep-08 13:09 

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.