Extracting Shapes Menu Items using MsiEnumComponentQualifiers

D

Dave

We have code in our app that extracts the items in the File->Shapes menu so
we can add the list of these items to our application that hosts the Visio
drawing control. We used this code from a help request 2 years ago. It was
CASE_ID_NUM: SRX040413603361

Gerard Collop sent us a code sample on how to do this using
MsiEnumComponentQualifiers to enumerate all the components with the following
GUID: CF1F488D-8D6F-499C-A78D-026E1DF38101.

We found that szAppBuf returns a string of items delimited by "|".
Example: "Network\Active Directory Objects|ADO_M.vss;Active Directory
Objects.vss;ADO_U.vss;Active Directory Objects (US Units).vss;<Begin
Localize>;Active Directory Objects.vss"
So we used this to extract the name of the shapes item to display in our menu.

The problem is that other locales (French, Japanese, etc.) szAppBuf doesn't
return a string in this format. It returns something like this
[$AdsobWOijdoUjendlOw...]

What is this second format? Is it some type of encoded string?
 
J

JuneTheSecond

I wonder who knows about such an code. You maight better to majke new one.
Could I ask you what is your purpose? List of command bar menu control items?
List of full name of the stencils?
 
P

peter.bittner

Dave,

would you mind to paste the relevant code snippet that extracts the
items from the File->Shapes menu? The same or similar code probably can
extract the "resent files list" from the File menu.

I am able to read out all Visio menu items, but for those file lists
Visio just returns a basically useless dummy string. I have been
looking for a solution for while!

Thanks so much!
Peter
 

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