problem with activex control events
-
I'm writing a COM activex control with ATL in evc++3.0 to be consumed by a evb client. on the client side, I'm creating my control with CreateObjectWithEvents() because the control supports some events. The problem is, although I can call control methods, I cannot seem to handle control events in my client at all. The control has a very simple event TestEvent that takes a single string param.
CComBSTR bstrParam(_T("Test message")); Fire_TestEvent(bstrParam);
Set obj = CreateObjectWithEvents("AxControl.Control.1", "Cl") 'method works obj.Test ' this is the event sink that never gets invoked!! Public Sub Cl_OnTestEvent(Status As String) MsgBox Status End Sub
I'm testing on PPC2000 emulator. So how do I build a control in evc++ for a evb client with events support? Does anyone have any prior experience building controls for evb? I desperately need some help and have been stuck here for sometime. :((Hush,hush... thought I heard you call my name now. Kula Shaker. Amit Dey Latest articles at CP -
Writing Word addins Office addin