S
Scott Metzger
Hi,
Ok, I know how to use AddAdvise with the Visio 2002 SDK...
IUnknown FAR* pSink = NULL;
CVisioEventList vsoEList;
CVisioEvent vsoEvent;
if ( SUCCEEDED(vsoApp.EventList(vsoEList)) )
{
if (SUCCEEDED(CoCreateAddonSink(ShapeAdded, &pSink)) )
{
if ( SUCCEEDED(vsoEList.AddAdvise( (short)(visEvtShape |
visEvtAdd), VVariant(pSink),
VBstr(_T("")), VBstr(_T("")),
vsoEvent)) )
{
vsoEvent.ID(&stclEventID);
}
} // end if created sink event
} // end if got list of events
But how do I use VisEventProc and AddAdvise in a Visio 2003 C++ program?
The documentation shows a VB example but I am unsure how to translate
that to C++.
Thanks,
Scott Metzger
Ok, I know how to use AddAdvise with the Visio 2002 SDK...
IUnknown FAR* pSink = NULL;
CVisioEventList vsoEList;
CVisioEvent vsoEvent;
if ( SUCCEEDED(vsoApp.EventList(vsoEList)) )
{
if (SUCCEEDED(CoCreateAddonSink(ShapeAdded, &pSink)) )
{
if ( SUCCEEDED(vsoEList.AddAdvise( (short)(visEvtShape |
visEvtAdd), VVariant(pSink),
VBstr(_T("")), VBstr(_T("")),
vsoEvent)) )
{
vsoEvent.ID(&stclEventID);
}
} // end if created sink event
} // end if got list of events
But how do I use VisEventProc and AddAdvise in a Visio 2003 C++ program?
The documentation shows a VB example but I am unsure how to translate
that to C++.
Thanks,
Scott Metzger