Language Difference For Automation

J

Jean Dophin

I want to know which language is better to create adds on for visio, between
visual c++ and vba. This is what I want to know. I want to add some
diagrams, when the user drag a diagram and drop it. It will bring a diaglog
box where the user can choose text from a combobox from that dialog. Then
the text the user chooses will be the text for that shape. For instance, you
drag a rectangle from the basic shape stencil window to the main window.
After dropping the rectangle, it will bring a dialog, where you can type or
choose the text for that rectangle. The text you type will be the text for
that rectangle. It is like doubleclik on a rectangle.

I also want to do something like that. Assume that I have a chip diagram,
then when I drop it to the window, I have to option to change the number of
input and output.

I know it can be done in vba, but I do have the sdk where I can create visio
project from visual c++, can I do use visual c++ to do that.

Any good reference for developing application for visio using visual c++
 
C

Chris [Visio MVP]

It's easiest to learn how to do this in VBA, then translate to C++ once
you've got a bit of experience programming Visio. For simple things, C++
might be overkill, unless you're really really comfortable with it. With C++
you'll want to build a "VSL", which is a special Visio-dll.

With .NET, you'll build a COM Add-in and need to read about
"QUEUEMARKEREVENT".

The SDK has samples in C++, C#, VB.Net, and

I've got a (sloppy) set of links on my web site:
http://www.wanderkind.com/visio/VisLinks.htm


--
Hope this helps,

Chris Roth
Visio MVP
http://www.wanderkind.com/visio

Go Team USA!
http://www.wanderkind.com/usa
 
C

Chris [Visio MVP]

Another nice thing about .NET and the SDK, is that when you install the SDK,
it gives you a Visio COM Add-in template that get's you up and running in no
time - pops up a message box when Visio starts, saying "My COM Add-in has
started!". Very good point to start from.


--
Hope this helps,

Chris Roth
Visio MVP
http://www.wanderkind.com/visio

Go Team USA!
http://www.wanderkind.com/usa
 
D

David P (Visio MVP)

It is a shorter hop from VBA to vb.net ...
However, everything that you describe could be done with just custom
properties and shapesheet formulae.
 
J

Jean Dophin

Can you tell me more about custom properties and shapesheet formula? Do I
still need VBA to do that? I am going to find some more info about
shapesheet formula.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top