Re: Creating event objects

John Pompeii <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
....some more detail:

The MbtQuotesNotify is derived from IUknown which I guess explains why this
class was generated differently then the rest (than those dervied from
IDispatch):

    [
      odl,
      uuid(C8323838-B094-4E3C-B9BE-D08B5C06E6BE),
      helpstring("IMbtQuotesNotify Interface"),
      oleautomation
    ]
    interface IMbtQuotesNotify : IUnknown {
        HRESULT _stdcall OnQuoteData([in] QUOTERECORD* pQuote);
        HRESULT _stdcall OnLevel2Data([in] LEVEL2RECORD* pRec);
        HRESULT _stdcall OnTSData([in] TSRECORD* pRec);
        HRESULT _stdcall OnOptionsData([in] OPTIONSRECORD* pRec);
    };

So I guess the question is how to create instances of IUnknown-derived
classes?

On one other point, using a C++ sample program for the Com classes I'm
using, the constructor of the C++ MbtQuotesNotify class invokes:

 EnableAutomation();      // Enable OLE automation

Is there something equivalent I need to do?

Also, please pardon the ignorance about COM.  I've managed to avoid this
stuff my whole career, but I do have a pretty solid background in java,
C++, CORBA, etc.

thanks,
--john
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.