One issue about the GetCommandBars

  • Thread starter C Dick via OfficeKB.com
  • Start date
C

C Dick via OfficeKB.com

Hello,
I am writing a program based on COM&Office word.

The codes are:
........
_Application m_app;
COleException e;
m_app.CreateDispatch("Word.Application.8", &e);
.....

Now, I want to get the CommandBars. So, I do like this:
.........
LPDISPATCH lpdisp_comBar = m_app.GetCommandBars();
.........

My question is:
How to get the object of 'CommandBars' from the 'lpdisp_comBar'?
I don't know WHICH CLASS represent the object 'CommandBars'.

If somebody know how to do it, please tell me.

Thanks a lot.
 
W

Word Heretic

G'day "C Dick via OfficeKB.com" <[email protected]>,

They are Office objects, not Word objects.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


C Dick via OfficeKB.com reckoned:
 

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