Click here to Skip to main content
15,920,896 members
Home / Discussions / COM
   

COM

 
GeneralMultiple clients accessing a COM component Pin
Atin Kumar5-Jul-02 17:53
Atin Kumar5-Jul-02 17:53 
GeneralRe: Multiple clients accessing a COM component Pin
Vivek Rajan12-Jul-02 10:15
Vivek Rajan12-Jul-02 10:15 
GeneralRe: Multiple clients accessing a COM component Pin
Atin Kumar14-Jul-02 15:05
Atin Kumar14-Jul-02 15:05 
GeneralInheritence & Virtual functions with COM/ATL Pin
Ed K5-Jul-02 8:39
Ed K5-Jul-02 8:39 
GeneralRe: Inheritence & Virtual functions with COM/ATL Pin
mhamsa8-Jul-02 6:38
mhamsa8-Jul-02 6:38 
GeneralRe: Inheritence & Virtual functions with COM/ATL Pin
soptest8-Jul-02 7:37
soptest8-Jul-02 7:37 
GeneralRe: Inheritence & Virtual functions with COM/ATL Pin
Vivek Rajan11-Jul-02 11:10
Vivek Rajan11-Jul-02 11:10 
GeneralRe: Inheritence & Virtual functions with COM/ATL Pin
Ed K11-Jul-02 15:42
Ed K11-Jul-02 15:42 
Thanks for offering to take a look at it. Rather than posting all the code here I've put it into a zip on my site to download.

test.zip

The zip contains 2 zip files. One is the test client and the other the servicefactory. I'm using VC6 and WTL7 (I'm in love with CString!).

ServiceFactory has a method GetService(BSTR name, IPObject**ppObj) which will get either the FoodService or the BeverageService depending on the string passed in. PObject has a virtual method ExecuteServie(BSTR param) which calls a virtual method Display. ExecuteService is only implemented in PObject. Display is only implemented in the subclasses.

If you step through the test client you can actually see that the right object is created however when I called ExecuteService it throws an unhandled exception.

Thanks again! Rose | [Rose]

ed
GeneralRe: Inheritence & Virtual functions with COM/ATL Pin
Vivek Rajan12-Jul-02 6:44
Vivek Rajan12-Jul-02 6:44 
GeneralRe: Inheritence & Virtual functions with COM/ATL Pin
Ed K12-Jul-02 8:44
Ed K12-Jul-02 8:44 
QuestionHow to use one instance of a COM object in different processes? Pin
Jawid5-Jul-02 5:37
Jawid5-Jul-02 5:37 
AnswerRe: How to use one instance of a COM object in different processes? Pin
Scot T Brennecke6-Jul-02 4:53
Scot T Brennecke6-Jul-02 4:53 
GeneralRe: How to use one instance of a COM object in different processes? Pin
8-Jul-02 4:22
suss8-Jul-02 4:22 
AnswerRe: How to use one instance of a COM object in different processes? Pin
8-Jul-02 4:17
suss8-Jul-02 4:17 
AnswerRe: How to use one instance of a COM object in different processes? Pin
Pedro Miranda8-Jul-02 4:47
Pedro Miranda8-Jul-02 4:47 
AnswerRe: How to use one instance of a COM object in different processes? Pin
Jawid9-Jul-02 16:18
Jawid9-Jul-02 16:18 
GeneralRe: How to use one instance of a COM object in different processes? Pin
Ed K12-Jul-02 8:09
Ed K12-Jul-02 8:09 
QuestionCan somebody please answer this? Pin
JohnnyG3-Jul-02 14:26
JohnnyG3-Jul-02 14:26 
AnswerRe: Can somebody please answer this? Pin
soptest3-Jul-02 14:39
soptest3-Jul-02 14:39 
GeneralRe: Can somebody please answer this? Pin
JohnnyG3-Jul-02 14:59
JohnnyG3-Jul-02 14:59 
GeneralRe: Can somebody please answer this? Pin
JohnnyG3-Jul-02 15:36
JohnnyG3-Jul-02 15:36 
AnswerRe: Can somebody please answer this? Pin
Stuart Dootson3-Jul-02 14:45
professionalStuart Dootson3-Jul-02 14:45 
GeneralRe: Can somebody please answer this? Pin
Stuart Dootson3-Jul-02 14:47
professionalStuart Dootson3-Jul-02 14:47 
GeneralUnregistered objects Pin
Stuart Dootson3-Jul-02 14:21
professionalStuart Dootson3-Jul-02 14:21 
GeneralRe: Unregistered objects Pin
Scot T Brennecke6-Jul-02 4:50
Scot T Brennecke6-Jul-02 4:50 

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.