InvisibleApp and Typelib generated code won't compile

S

Scott Metzger

Hi,

I have imported the Visio 2003 typelibrary using the Class Wizard.
When I #include "CVInvisibleApp.h" I get an compile error:
c:\Projects\Ice Visio Automation\CVInvisibleApp.h(21): error C2061:
syntax error : identifier 'IVDocument'
This is the first error in a whole slew of syntax errors "IVPage" etc.

This occurs on the following method declaration
STDMETHOD(get_ActiveDocument)(IVDocument * * lpdispRet)

My program builds and runs fine without the included .h file.
I tried manually adding #include "CVDocument.h" to CVInvisibleApp.h but
that does not fix the error.

1) How does one use an InvisibleApp object in a Visio 2003 MFC C++
application?

2) Assuming the answer to question 1 is "Wait for the SDK" or "The Class
Wizard importation is limited and you need to write your own COM
interface". What is the best alternative design to using an
InvisibleApp? Create a new Drawing Control object that is 1 pixel in
size? Whats the easiest way to load a Visio diagram and be able to
manipulate the objects via automation and not show this diagram to the user?

Thank You,
Scott Metzger
 

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