AddIn with a dialogBox for ms-word (C++)

T

Tamir

Hi all, I wrote an addIn (C++) for ms-word and I wish to add my own "Options"
dialogBox with tabs to it.
Ms-word uses the bosa_sdm_Microsoft class to create such an
"Options"-dialogBox (window).

I use GetProperty(..."Windows"...) and CallMethod(..."Add"...) with variant
variables in order to get the "Windows" collection and then to "Add" a new
bosa_sdm_Microsoft dialog-window to it.

The problem is that CallMethod returns an exception saying: wrong parameter.
How can I know (in general) which parameters are required and should be
passed with the variant in order to add a resource such as a dialog.
For example to create a new commandButton I only need to pass bstr string -
nothing more! (i set the rest of the properties later) -- but I know that
ONLY after seeing it in an example.
How, did the programer of the example knows it and how can i know it without
examples.
 

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