Click here to Skip to main content
15,913,669 members
Home / Discussions / COM
   

COM

 
GeneralRe: IStorage Pin
Phil J Pearson25-Mar-04 5:01
Phil J Pearson25-Mar-04 5:01 
GeneralRe: IStorage Pin
Nick Parker25-Mar-04 6:03
protectorNick Parker25-Mar-04 6:03 
GeneralCHtmlView Pin
alex.barylski24-Mar-04 22:09
alex.barylski24-Mar-04 22:09 
GeneralRe: CHtmlView Pin
Rob Manderson24-Mar-04 22:32
protectorRob Manderson24-Mar-04 22:32 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 0:11
alex.barylski25-Mar-04 0:11 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 8:40
protectorRob Manderson25-Mar-04 8:40 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 12:06
alex.barylski25-Mar-04 12:06 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 12:27
protectorRob Manderson25-Mar-04 12:27 
It looks very much like you're not including the header that defines the IHTMLEditDesigner interface. It's in mshtmlc.h. But don't forget that you need to derive your own class from IHTMLEditDesigner. Mine looks like this:
C++
class CMSHTMLDisableDragHTMLEditDesigner : public IHTMLEditDesigner
{
public:
    virtual HRESULT STDMETHODCALLTYPE
        QueryInterface(REFIID riid, void __RPC_FAR *__RPC_FAR *ppvObject);
    virtual ULONG   STDMETHODCALLTYPE
        AddRef(void);
    virtual ULONG   STDMETHODCALLTYPE
        Release(void);

    virtual HRESULT STDMETHODCALLTYPE
        PreHandleEvent(DISPID inEvtDispId, IHTMLEventObj *pIEventObj);
    virtual HRESULT STDMETHODCALLTYPE
        PostHandleEvent(DISPID inEvtDispId, IHTMLEventObj *pIEventObj);
    virtual HRESULT STDMETHODCALLTYPE
        TranslateAccelerator(DISPID inEvtDispId, IHTMLEventObj *pIEventObj);
    virtual HRESULT STDMETHODCALLTYPE
        PostEditorEventNotify(DISPID inEvtDispId, IHTMLEventObj *pIEventObj);

    CMSHTMLDisableDragHTMLEditDesigner();

    BOOL    Attach(IHTMLDocument2 *pDoc);
    void    Detach();

private:
    IHTMLEditServices           *m_pServices;
    UINT                        m_uRefCount;
    CMSHTMLDisableDragIDispatch m_dp;
};

And with appropriate code in each of the members.

Rob Manderson

Colin Davies wrote: I'm sure Americans could use more of it, and thus reduce the world supply faster. This of course would be good, because the faster we run out globally, the less chance of pollution there will be. (Talking about the price of petrol) The Soapbox, March 5 2004
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 13:00
alex.barylski25-Mar-04 13:00 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 13:14
protectorRob Manderson25-Mar-04 13:14 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 15:27
alex.barylski25-Mar-04 15:27 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 15:50
protectorRob Manderson25-Mar-04 15:50 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 16:30
alex.barylski25-Mar-04 16:30 
GeneralRe: CHtmlView Pin
alex.barylski26-Mar-04 13:40
alex.barylski26-Mar-04 13:40 
GeneralRe: CHtmlView Pin
Rob Manderson26-Mar-04 13:56
protectorRob Manderson26-Mar-04 13:56 
GeneralSafeArray freak Pin
El'Cachubrey24-Mar-04 5:46
El'Cachubrey24-Mar-04 5:46 
QuestionMake a Composite Control (COM) be an OLE container? Pin
mangellj24-Mar-04 5:30
mangellj24-Mar-04 5:30 
QuestionActiveX storing data to be picked up by another ActiveX later? Pin
SysLo23-Mar-04 0:57
SysLo23-Mar-04 0:57 
AnswerRe: ActiveX storing data to be picked up by another ActiveX later? Pin
igor196024-Mar-04 15:01
igor196024-Mar-04 15:01 
GeneralRe: ActiveX storing data to be picked up by another ActiveX later? Pin
SysLo25-Mar-04 1:49
SysLo25-Mar-04 1:49 
GeneralI am unable to retrieve Combuilder in Matlab Pin
vil_0922-Mar-04 20:08
vil_0922-Mar-04 20:08 
QuestionWhat are issues when renaming a COM component? Pin
User 21559722-Mar-04 17:42
User 21559722-Mar-04 17:42 
AnswerRe: What are issues when renaming a COM component? Pin
Steve S22-Mar-04 22:07
Steve S22-Mar-04 22:07 
GeneralRe: What are issues when renaming a COM component? Pin
User 21559723-Mar-04 0:00
User 21559723-Mar-04 0:00 
Generaluse VB COM in C++ Pin
Cuu22-Mar-04 5:18
Cuu22-Mar-04 5:18 

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.