Click here to Skip to main content
15,898,371 members
Home / Discussions / COM
   

COM

 
GeneralCOM + several classes Pin
Geert van Horrik3-Feb-05 22:52
Geert van Horrik3-Feb-05 22:52 
GeneralCom components Pin
masud_masud3-Feb-05 4:25
masud_masud3-Feb-05 4:25 
QuestionATL ActiveX - How to create the own Property Page? Pin
out_of_life3-Feb-05 0:02
out_of_life3-Feb-05 0:02 
AnswerRe: ATL ActiveX - How to create the own Property Page? Pin
out_of_life4-Feb-05 1:54
out_of_life4-Feb-05 1:54 
GeneralRTD (real Time Data) problem Pin
aswanee2-Feb-05 2:02
aswanee2-Feb-05 2:02 
General"A Tool returned Error" Pin
Hariharan.T1-Feb-05 21:31
Hariharan.T1-Feb-05 21:31 
General0x8000401a - The server process could not be started because the configured identity is incorrect. Check the username and password. Pin
ohadp1-Feb-05 20:48
ohadp1-Feb-05 20:48 
GeneralDeriving a class from more than one interface Pin
Steve Thresher31-Jan-05 23:24
Steve Thresher31-Jan-05 23:24 
How do you derive a class from more than one interface where two or more of the interfaces have methods with the same name, parameters and return type?

class CSomeClass : public IInterfaceA, IInterfaceB
{
public:

CSomeClass();

// IUnknown
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, LPVOID FAR* ppvObj);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();

// IIntefaceA
HRESULT STDMETHODCALLTYPE DoStuff(VOID);

// InterfaceB
HRESULT STDMETHODCALLTYPE DoStuff(VOID); <-- Compiler generates an error
};

error C2535: 'HRESULT CSomeClass::DoStuff()' : member function already defined or declared

If its as simple as only having one copy of the function then how do you know which interface the function is serving? QueryInterface() handles this by passing in an IID but the functions I'm dealing with have no such parameters.

Systems AXIS Ltd - Software for Business ...
GeneralRe: Deriving a class from more than one interface Pin
AndyCheetham4-Feb-05 3:00
AndyCheetham4-Feb-05 3:00 
GeneralSink implementation Pin
Hariharan.T31-Jan-05 0:26
Hariharan.T31-Jan-05 0:26 
QuestionHow to open the default browser ? Pin
lasterix28-Jan-05 0:48
lasterix28-Jan-05 0:48 
AnswerRe: How to open the default browser ? Pin
ThatsAlok28-Jan-05 18:17
ThatsAlok28-Jan-05 18:17 
GeneralRe: How to open the default browser ? Pin
lasterix29-Jan-05 21:25
lasterix29-Jan-05 21:25 
GeneralRe: How to open the default browser ? Pin
ThatsAlok8-Feb-05 19:39
ThatsAlok8-Feb-05 19:39 
AnswerRe: How to open the default browser ? Pin
User 21559731-Jan-05 19:16
User 21559731-Jan-05 19:16 
GeneralRe: How to open the default browser ? Pin
lasterix1-Feb-05 2:12
lasterix1-Feb-05 2:12 
Generalcalling COM from 2 threads Pin
Aviv Halperin27-Jan-05 2:22
Aviv Halperin27-Jan-05 2:22 
GeneralRe: calling COM from 2 threads Pin
geo_m29-Jan-05 6:22
geo_m29-Jan-05 6:22 
GeneralRe: calling COM from 2 threads Pin
Anonymous10-Feb-05 10:09
Anonymous10-Feb-05 10:09 
QuestionIUnknown Vs IDispatch??? Pin
Hariharan.T26-Jan-05 21:44
Hariharan.T26-Jan-05 21:44 
AnswerRe: IUnknown Vs IDispatch??? Pin
User 21559726-Jan-05 22:50
User 21559726-Jan-05 22:50 
GeneralRe: IUnknown Vs IDispatch??? Pin
ThatsAlok28-Jan-05 18:26
ThatsAlok28-Jan-05 18:26 
GeneralRe: IUnknown Vs IDispatch??? Pin
geo_m29-Jan-05 6:36
geo_m29-Jan-05 6:36 
GeneralRe: IUnknown Vs IDispatch??? Pin
ThatsAlok30-Jan-05 18:51
ThatsAlok30-Jan-05 18:51 
GeneralRe: IUnknown Vs IDispatch??? Pin
geo_m30-Jan-05 19:34
geo_m30-Jan-05 19:34 

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.