Problem with COM Event Callback 
Author Message
 Problem with COM Event Callback

I have a COM client that uses ATL and MFC.  I have a COM
server that is written in VB.  I have no problem accessing
COM objects or getting callbacks via Connection Points.
But in my callback functions I cannot access methods or
properties using interface pointers that are returned.
There appears to be a stack problem as I get the infamous
"line 42 chkesp.c" message.

I've seen this problem reported in other forums but never
a solution.  There are suggestions that MFC and COM use
different calling conventions (stdcall vs. cdecl) but never
a clear statement about why this causes the problem or
suggestion for how to fix the problem.  I'm sure there are
hundreds of ATL/MFC/COM clients to VB COM servers in the
world.  Anyone seen this problem and found a fix for it?


Dennis Vogel
Avaya, Inc.

Tue, 01 Jul 2003 00:28:37 GMT  
 [ 1 post ] 

 Relevant Pages 


2. ATL COM Component firing events into VBScript event sink

3. HELP: COM events and Network events

4. Problems with ATL COM event with BSTR arg in MFC

5. Event Sink for a COM object which raises events - Proof of Concept

6. Enable COM clients call methods inside COM events

7. Interface callback implementation (vs Delegates & Events)

8. About Event,callback and thread

9. waveOutOpen callback event

10. event callback using XML Web Service

11. Callback Event lost

12. Firing Events From Callback Function


Powered by phpBB® Forum Software