Yeah, I got the SDK and all that jazz, , but the C# still has some more
versatility than the C wrapper classes.
I'll try to be as specific as possible.
What I'm trying to do is from an arbitrary data structure in C++, fill
in the custom property values with arbitrary data members in an instance
of a particular data structure.
A good example would be
What I have been able to do successfully is -
- Pull a shape from a stencil I've made beforehand
- Drop that shape on a visio page [so I can actually see it]
Now what I want to do is store the age and name inside of the custom
So lets say my declarations are
To tie myCell to myShape --
Now here I run into some qualms.
Assuming I wanted to set the name of the person as a custom property -
in the C# example, to set the cell equivalent to a string, the SDK uses
[without any included libraries] --
formatHelper = new StringValueInCell();
VC7 catches an error trying to find StringValueInCell()
Additionally, I've tried
myCell.putResult, but putResult takes two arguments, and the first one,
being of type CONST VARIANT_HELPER_CLASS &UnitsNameOrCode
Okay, so I look in the SDK documentation for Units, and I find
STR - String
But when I try
myCell.putResult(STR, myPerson.getName() )
VC7 throws me an error.
And I try different variations and permutations with the age parameter,
to no avail.
Its a big issue of "I know what I want to set the value to, I know the
functions to set the value, but I can't set the value"
Thanks much for your time / help.
Post by Michel LAPLANE
You can also ask me more precise question in unsing C++ Viso api if you
This is kind of a newbie question, but I'm trying to use the C/C++ wrapper
classes to define the custom properties of a shape (that is, make rows,
and fill in values respectively) but no matter what permutation of
commands I execute, I can't get the darned thing working
Could somebody please provide example code of how to modify / set / read
from a shape's Custom Properties?