LPDispatch cast to a class?

S

Scott Metzger

Hi,

Ok, I am using the ActiveX Drawing Control in a C++ MFC application.

How do I convert the LPDispatch that is returned by
MyVisio.get_Document(); into a useful object; i.e cast it to a Class?

And how about MyVisio.get_Window() ?

Is there anyway to cast these to a CVisioDocument or CVisioWindow
(classes from the Visio 2002 SDK) ?

Thanks,
Scott Metzger
 
S

Scott Metzger

Nevermind, I figured out how to import the Type Library. Wahoo, now I
get to completly rewrite everything that used the 2002 SDK.

One step forward two steps back.
 

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