Hi...
I am making a program with ATL/COM(vc++) and c# in windows ce platform(wince 5.0).
ATL/COM has the function of ConnectionPoint & event.
and C# is invoked for the events.
ATL/COM------------------------------------------------------------
HRESULT Fire_OnGetAlarmState(BSTR inBstrEventID,
BSTR * outBstrDate,
BSTR * outBstrContent)
{
...
}
HRESULT Fire_OnGetResidentArrival(BSTR inBstrEventID,
BSTR * outBstrEntranceName,
BSTR * outBstrEntranceAddr,
BSTR * outBstrRelationShip)
{
...
}
If an event method is respectively registered about the two event in C#, there is no problem.
However, if the two event method are registered in C#, a problem arises in ATL/COM.
The problem is an excption error that is involved with IDispatch::Invoke(...).
And the source has no problem in PC platform at all.
Could you tell me how to solve the problem?
[EDIT: email address removed - answer should be posted on the site for the benefit of the community. Also, you don't want a mountain of spam to start filling your inbox!]