OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Vinoth Kumar B (bvkumarANZ.COM)
Date: Thu May 23 2002 - 01:47:03 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi All,
            I have solved the problem by converting to IDispatch
    Interface....But i wanted to know the reason why it is not working with
    IUnknown...Plz let me know if any one solved this problem...Sorry for
    troubling u all...

    Vinoth

    -----Original Message-----
    From: Jai Kishore [mailto:jkishoreQUARK.CO.IN]
    Sent: Thursday, May 23, 2002 11:04 AM
    To: DCOMDISCUSS.MICROSOFT.COM
    Subject: Re: No such Interface supported error

    Hey Vinoth,
    I don't think the COM_INETRFACE_ENTRY2 stuff is necessary.
    You can successfully do a QI without it, which is the actual job of the
    MACRO.

    So change it and try with the solution.

    Jai

    -----Original Message-----
    From: Vinoth Kumar B [mailto:bvkumarANZ.COM]
    Sent: Thursday, May 23, 2002 10:38 AM
    To: DCOMDISCUSS.MICROSOFT.COM
    Subject: Re: No such Interface supported error

    Sorry...this is the correct one...

             -----Original Message-----
            From: Vinoth Kumar B
            Sent: Thursday, May 23, 2002 10:23 AM
            To: 'DCOMDISCUSS.MICROSOFT.COM'
            Subject: No such Interface supported error

            Plz have a look and let me know if any problem is there....

            // ChatBrokerObj.h : Declaration of the CChatBrokerObj

            #ifndef __CHATBROKEROBJ_H_
            #define __CHATBROKEROBJ_H_

            #include "resource.h" // main symbols

    ////////////////////////////////////////////////////////////////////////////
    /
            // CChatBrokerObj
            class ATL_NO_VTABLE CChatBrokerObj :
                    public CComObjectRootEx<CComMultiThreadModel>,
                    public CComCoClass<CChatBrokerObj, &CLSID_ChatBrokerObj>,
                    public ISupportErrorInfo,
                    public IRegisterChatServer,
                    public IDiscussions
            {
            public:
                    DECLARE_CLASSFACTORY_SINGLETON(CChatBrokerObj);
                    CChatBrokerObj()
                    {
                    }

            DECLARE_REGISTRY_RESOURCEID(IDR_CHATBROKEROBJ)

            DECLARE_PROTECT_FINAL_CONSTRUCT()

            BEGIN_COM_MAP(CChatBrokerObj)
                    COM_INTERFACE_ENTRY(IDiscussions)
                    COM_INTERFACE_ENTRY(IRegisterChatServer)
                    COM_INTERFACE_ENTRY2(IUnknown,IRegisterChatServer)
                    COM_INTERFACE_ENTRY(ISupportErrorInfo)
            END_COM_MAP()

            // ISupportsErrorInfo
                    STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);

            // IRegisterChatServer
            public:
                    STDMETHOD(UnRegister)(/*[in,string]*/ wchar_t*
    pwszDiscussion);
                    STDMETHOD(Register)(/*[in]*/ IUnknown* pChatServer,
    /*[in,string]*/ wchar_t* pwszDiscussion );
            //IDiscussions
            public:
                    STDMETHOD(GetDiscussionList)(/*[out,string]*/ wchar_t**
    ppwszDiscussionList);
                    STDMETHOD(GetChatServer)(/*[in,string]*/ wchar_t*
    pwszDiscussion,/*[out]*/ IUnknown** ppUnk);
            };
            #endif //__CHATBROKEROBJ_H_

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM