COM/ATL add-in for Word in VS 2005 C++

H

hafabee

I am trying to create a COM/ATL add-in for word using VS2005 C++; this
is to be an unmanaged, not-.NET add-in.

I have sucessfully gotten the MS example
http://support.microsoft.com/kb/230689/ comaddin example to work and
intend to use it as my starting point.

I am an experienced programmer in many languages, but am rusty on C++.
I prototyped my add-in using Word's built-in VBA.

What I am stumpted on is how to use C++ for the Word functionality. For
example, how would I implement the VBA statement "Selection.Collapse"
in C++.

I work best by example so any working code that anybody could point me
to would be great.

Thanks.
P.S. I previously this posted to another forum ... sorry about that.
 
C

Cindy M.

Hi Hafabee,

There aren't a lot of people (currently) in this group working with C++,
although you might try getting together with Tamir, who apparently is
also working on COM Addins using the same tools.

Have you tried searching MSDN and the KnowledgeBase for articles. A
search on the following terms turned up quite a few examples that might
help you: C++ automate Word

http://support.microsoft.com/search/default.aspx?catalog=LCID=1033&1033
comm=1&spid=global&query=C%2B%2B+automate+Word&pwt=false&title=false&kt=A
LL&mdt=0&res=20&ast=1&ast=2&ast=3&ast=4&ast=7&mode=a&adv=1
I am trying to create a COM/ATL add-in for word using VS2005 C++; this
is to be an unmanaged, not-.NET add-in.

I have sucessfully gotten the MS example
http://support.microsoft.com/kb/230689/ comaddin example to work and
intend to use it as my starting point.

I am an experienced programmer in many languages, but am rusty on C++.
I prototyped my add-in using Word's built-in VBA.

What I am stumpted on is how to use C++ for the Word functionality. For
example, how would I implement the VBA statement "Selection.Collapse"
in C++.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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