S
Scott A. Guyer
Hi Folks,
I've create a Windows Forms app in vs.net 2003 and added the Visio
11 activex control to my application. So far so good. However, in an
attempt to trap connection add and delete events in my app I added
the following code to my app's constructor (following the
InitializeComponent() call).
visioApp.EventList.AddAdvise( (short)System.Convert.ToInt16(
Microsoft.Office.Interop.Visio.VisEventCodes.visEvtConnect),
new MyEventSink(), "", "Added connections handler" );
Note that MyEventSink is a class that implements IVisEventProc.
The problem is, at runtime, I get a useful exception
"\n\nAn exception occurred."
Digging in debugger it looks like this is a result error code
0x86db0898. Unfortunately, I can't garner anything from this code.
Nothing in my web searches, MSDN search, vs.net error lookup, etc.
Anyone have any ideas? Has anyone had success with using AddAdvise
in C# with the Visio 2003 SDK? Recommended alternative approach?
Thank you,
-Scott
I've create a Windows Forms app in vs.net 2003 and added the Visio
11 activex control to my application. So far so good. However, in an
attempt to trap connection add and delete events in my app I added
the following code to my app's constructor (following the
InitializeComponent() call).
visioApp.EventList.AddAdvise( (short)System.Convert.ToInt16(
Microsoft.Office.Interop.Visio.VisEventCodes.visEvtConnect),
new MyEventSink(), "", "Added connections handler" );
Note that MyEventSink is a class that implements IVisEventProc.
The problem is, at runtime, I get a useful exception
"\n\nAn exception occurred."
Digging in debugger it looks like this is a result error code
0x86db0898. Unfortunately, I can't garner anything from this code.
Nothing in my web searches, MSDN search, vs.net error lookup, etc.
Anyone have any ideas? Has anyone had success with using AddAdvise
in C# with the Visio 2003 SDK? Recommended alternative approach?
Thank you,
-Scott