C++ sample code to cathc events while automating Visio.
-
Tuesday, February 01, 2011 2:05 PM
Hi all,
I am trying to automate Visio using C++.
I want to catch Visio events in my code. For example, when I close the Visio document, one of my code callbacks should hit. I could do it with PowerPoint using the method described in the below link:
http://support.microsoft.com/kb/309309 ( Adding an MFC class using class wizard and implementing the event sink methods.)
But, the same method is not working for Visio. I am finding difficulties using the EventList method. Can some one help me with a sample code which can open a Visio document and on closing that document, some method inside my code should get hit.
Thanks in advance,
Prasnth
All Replies
-
Friday, February 04, 2011 10:29 AMModerator
Hi Prasnth,
Thank you for posting and we are gald to help with you.
Because your issue about Visio, I am not familiar with it. And I think you may get more help if you post on this site: http://social.answers.microsoft.com/Forums/en-US/addbuz/threads , there are more experts there.
Best Regards,
Bruce Song [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

- Marked As Answer by Bessie ZhaoModerator Tuesday, February 08, 2011 9:34 AM

