Tamir 0 Newbie Poster

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

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

The problem is that CallMethod returns an exception: 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 - noting more! -- but I know that ONLY after seeing it in an example.

---
Any help or link to help will be appreciated.
Best regards,
Tamir.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.