Click here to Skip to main content
15,908,444 members
Home / Discussions / COM
   

COM

 
GeneralRe: Need help using object in ATL ActiveX EXE window services server. Pin
bahruddina23-Dec-02 19:14
bahruddina23-Dec-02 19:14 
GeneralRe: Need help using object in ATL ActiveX EXE window services server. Pin
pba_24-Dec-02 4:28
pba_24-Dec-02 4:28 
GeneralRe: Need help using object in ATL ActiveX EXE window services server. Pin
geo_m30-Dec-02 5:56
geo_m30-Dec-02 5:56 
GeneralRe: Need help using object in ATL ActiveX EXE window services server. Pin
pba_30-Dec-02 6:03
pba_30-Dec-02 6:03 
GeneralRe: Need help using object in ATL ActiveX EXE window services server. Pin
bahruddina30-Dec-02 20:28
bahruddina30-Dec-02 20:28 
Questionpackaging a vc++ software? Pin
xxhimanshu21-Dec-02 1:40
xxhimanshu21-Dec-02 1:40 
AnswerRe: packaging a vc++ software? Pin
Renjith Ramachandran29-Dec-02 6:00
Renjith Ramachandran29-Dec-02 6:00 
GeneralATL COM thingie using inheritance Pin
Scracha20-Dec-02 4:56
Scracha20-Dec-02 4:56 
Is it possible for a COM Class I've made using the ATL Wizard thingie to inherit from another class.

The following code doesn't compile since I added "public INewParentClass", I get the following error on the COM_INTERFACE_ENTRY(IDispatch) line.

c:\temp\code\mymethod2\mymethod.h(29) : error C2594: 'static_cast' : ambiguous conversions from 'class CMYMETHOD *' to 'struct IDispatch *'

Code is as follows.

/////////////////////////////////////////////////////////////////////////////
// MYMETHOD.h : Declaration of the CMYMETHOD

#ifndef __MYMETHOD_H_
#define __MYMETHOD_H_
#include "resource.h" // main symbols
#include "IParentClass.h"

/////////////////////////////////////////////////////////////////////////////
// CMYMETHOD
class ATL_NO_VTABLE CMYMETHOD :
public CComObjectRootEx<ccomsinglethreadmodel>,
public CComCoClass<cmymethod, &clsid_mymethod="">,
public IDispatchImpl<ivpim, &iid_imymethod,="" &libid_mymethodserver2lib="">,
public INewParentClass
{
public:
CMYMETHOD()
{
}

DECLARE_REGISTRY_RESOURCEID(IDR_MYMETHOD)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CMYMETHOD)
COM_INTERFACE_ENTRY(IMYMETHOD)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()

// IMYMETHOD
public:
STDMETHOD(Hello)(/*[in]*/ BSTR sClientName);
};

#endif //__MYMETHOD_H_
GeneralRe: ATL COM thingie using inheritance Pin
Ranjan Banerji20-Dec-02 5:44
Ranjan Banerji20-Dec-02 5:44 
GeneralRe: ATL COM thingie using inheritance Pin
pba_23-Dec-02 12:30
pba_23-Dec-02 12:30 
GeneralBeginners help with SAFEARRAY Pin
Obliterator19-Dec-02 8:24
Obliterator19-Dec-02 8:24 
GeneralRe: Beginners help with SAFEARRAY Pin
Barry Lapthorn19-Dec-02 20:47
protectorBarry Lapthorn19-Dec-02 20:47 
GeneralRe: Beginners help with SAFEARRAY Pin
work_to_live20-Dec-02 20:18
work_to_live20-Dec-02 20:18 
GeneralRe: Beginners help with SAFEARRAY Pin
Barry Lapthorn22-Dec-02 0:37
protectorBarry Lapthorn22-Dec-02 0:37 
GeneralRe: Beginners help with SAFEARRAY Pin
Barry Lapthorn23-Dec-02 3:16
protectorBarry Lapthorn23-Dec-02 3:16 
Generala COM+ design question Pin
Anonymous19-Dec-02 3:16
Anonymous19-Dec-02 3:16 
GeneralRe: a COM+ design question Pin
Burt Harris21-Dec-02 10:34
Burt Harris21-Dec-02 10:34 
QuestionGot CLSID/PROGID, how to access? Pin
Anonymous19-Dec-02 1:25
Anonymous19-Dec-02 1:25 
AnswerRe: Got CLSID/PROGID, how to access? Pin
Anonymous19-Dec-02 10:17
Anonymous19-Dec-02 10:17 
AnswerRe: Got CLSID/PROGID, how to access? Pin
geo_m30-Dec-02 6:16
geo_m30-Dec-02 6:16 
QuestionWhat interface to implement to be a datasource to VB data bound control? Pin
Erik Juhl13-Dec-02 5:47
Erik Juhl13-Dec-02 5:47 
AnswerRe: What interface to implement to be a datasource to VB data bound control? Pin
Jörgen Sigvardsson24-Dec-02 12:46
Jörgen Sigvardsson24-Dec-02 12:46 
Questionhow to debug visual com dll ?? Pin
Leesen13-Dec-02 5:08
Leesen13-Dec-02 5:08 
AnswerRe: how to debug visual com dll ?? Pin
geo_m13-Dec-02 11:29
geo_m13-Dec-02 11:29 
GeneralRe: how to debug visual com dll ?? Pin
Leesen13-Dec-02 16:08
Leesen13-Dec-02 16:08 

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.