Adding a User Section

S

Scott Metzger

Hi,

Whenever I add a User Section on my OnConnect mapped function to the
connecting shape my .exe locks up. My .exe apears to be in some kind of
message wait state (it behaves as if it has a modal dialog up). Same
code works fine when I try to add a Custom Property.

fromShape.AddNamedRow(visSectionUser, VBstr(_T("EditNumConnections")),
1, &row_num);

The above returns S_OK and the rest of my code in my function executes
without problems. Also, when I look at my Visio diagram the
User.EditNumConnections has been added to the ShapeSheet. I even tried
calling AddSection first but that didn't make a difference.

My program is a C++ .exe that is uing the visiwrap classes (Visio 2002).

Am I doing something wrong? Is there another way to programatically add
a User Cell?

Thanks,
Scott Metzger
 

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