I dont really understand the example, this is my first plugin to visio. But
after looking at the example i decided to go with the event filter demo in
the visio 2003 sdk, but there i have run into another problem,
The code i the demo for adding an event looks like this
' Add an event for all ShapeAdded events
pageEventList.AddAdvise(visEvtAdd + _
CShort(Microsoft.Office.Interop.Visio.VisEventCodes. _
visEvtShape), _
eventHandler, "", noFiltersSet)
And then i hoped i could write
pageEventList.AddAdvise(CShort(Microsoft.Office.Interop.Visio.VisEventCodes.visEvtNonePending), _
eventHandler, "", noFiltersSet)
but when i run the code i get
An exception occurred.
at Microsoft.Office.Interop.Visio.EventListClass.AddAdvise(Int16
EventCode, Object SinkIUnkOrIDisp, String IIDSink, String TargetArgs)