Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Impromptu 7.1 COM SDK

Status
Not open for further replies.

oschmitt

Programmer
Sep 17, 2002
15
US
Hello all,

I am trying to retrieve the impromptu version using the COM SDK. It works pretty well in VB:

Dim major As String
Dim minor As String
Dim build As String
res = objImpApp.GetAppVersionInfo(major, minor, build)

However I am having trouble doing the same thing in C/C++.
The profile of the function is:
long GetAppVersionInfo(const _variant_t& fmajor,const _variant_t& fminor,const _variant_t& fbuild);

I tried a couple of things like:
VARIANT major;
major.vt = VT_BSTR;
VariantInit(&major);
(same thing for minor and build)
long l = application->GetAppVersionInfo(major,minor,build);
But it keep throwing an exception.

Do you know the precise type of parameters I should use?
Any other ideas ?
cheers,

Olivier
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top