How can I get version of Visio application ?

R

Ronnie

I have made a addin for visio , in order to support different version of
visio, I need to know version of host application, I get the version using
API (Application->GetVersion()) it crash, what happened? how can get it?
any help will be appreciated!
thanks,
Ronnie Ren
 
P

Paul Herber

I have made a addin for visio , in order to support different version of
visio, I need to know version of host application, I get the version using
API (Application->GetVersion()) it crash, what happened? how can get it?
any help will be appreciated!

Ensure that you are treating the result as a string (actually a
widestring).
 
R

Ronnie

Yes, I receive the result using a BSTR
I debug the programe and find that visio seem not to allowe any program to
call the function, a error from assert(hr) will be pop up.
what happened?
 
P

Paul Herber

Yes, I receive the result using a BSTR
I debug the programe and find that visio seem not to allowe any program to
call the function, a error from assert(hr) will be pop up.
what happened?

It's a property, not a function - remove the () after GetVersion.
 

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