OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: S.Pradhan (sabyasachi.pradhanKLA-TENCOR.COM)
Date: Thu May 23 2002 - 00:30:34 CDT

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

    I guess your's is an exe server,
    are u spawning threads in the client code, where u call CoCreateInstance.
    can u paste the few line of Client side code, where u are calling
    CoCreateInstanec

    -----Original Message-----
    From: Distributed COM-Based Code [mailto:DCOMDISCUSS.MICROSOFT.COM]On
    Behalf Of Vinoth Kumar B
    Sent: Thursday, May 23, 2002 11:05 AM
    To: DCOMDISCUSS.MICROSOFT.COM
    Subject: Re: No such Interface supported error

    Pradhan,
            I have tried without using the COM_INTERFACE_ENTRY2 entry and it was
    not working..Any body having a sample code which is deriving multiple
    interfaces from IUnknown as my case?Plz help me out in this..

    -----Original Message-----
    From: S.Pradhan [mailto:sabyasachi.pradhanKLA-TENCOR.COM]
    Sent: Thursday, May 23, 2002 10:50 AM
    To: DCOMDISCUSS.MICROSOFT.COM
    Subject: Re: No such Interface supported error

    Why should one have COM_INTERFACE_ENTRY2 for IUnknown derived interfaces, it
    is required for IDispatch derived ones

    -----Original Message-----
    From: Distributed COM-Based Code [mailto:DCOMDISCUSS.MICROSOFT.COM]On
    Behalf Of Vinoth Kumar B
    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

    ----------------------------------------------------------------
    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