I need to write C++ code that group three shapes in document. I have three “smart” pointers to shapes (leftConnectorPtr, rightConnectorPtr and textBoxPtr) and I must “combine” them into the ShapeRange object.
I use the Shapes.Range method and pass array with shapes names to that method.
Here my code (sorry, my browser has failed -- I can not use forum "tags"):
C++ questions are off-topic in the VSTO forum. The Please Read First message at the top of the forum briefly describes what VSTO is and what is supported in the forum. It also contains links to venues for Office-related, non-VSTO questions. I suggest you try an office.developer newsgroup, or a newsgroup that specializes in C++.
FWIW, no matter where you ask, you should provide information about the version of Word (I assume this is Word and not Excel or PowerPoint) and provide information about the other objects you use in your code. For example, I wonder what footerPtr represents...Cindy Meister, VSTO/Word MVP