activex set properties problem
John Aherne
johna at johnaherne.co.uk
Sun Jul 16 06:03:34 PDT 2006
I see that Colin Ingarfield had a problem with the activex component
back in May. To do with array of ints type properties not being dealt with.
It looks like someone else found a solution to do with this and I have
copied the text of the email that discusses this below.
Of course I am interested since I have just run into this problem.
However, I am absolutely clueless as to what to do. Perhaps someone who
knows more might be able to contact the person who has the workaround so
it could be patched into wx.activex. Or maybe sent to Lindsay Mathieson
who might be interested to include it in his module.
Hoping this might get picked up.
Regards
John Aherne
> at this moment I am struggling with the wxactivex component. The class
> seems to work pretty nicely, however I have to work with a method of
> the activex control that returns a wxVariant. By looking more
> carefully, the Variant that is returned should contain an array of
> values (char's). This is by default not handled by wxactivex (is a
> to-do item).
> In an attempt to add this capability I cam across the problem that a
> VARIANT has to be converted to a wxVariant.
>
> I was able to determine the number of values in the VARIANT and as far
> as I can judge at this moment I also succeeded in getting access to the
> individual elements of it. Whenever I tried to add those elements to
> the wxVariant in the "bool MSWVariantToVariant(VARIANTARG& va,
> wxVariant& vx)" function, everything crashes, even without giving any
> error messages.
>
> Does someone know how to do such a conversion? This is really driving
> me crazy!
>
> Regards,
>
> Sjaak
>
> Reply
>
>
> From: SVerdoold - view profile
> Date: Tues, Jul 11 2006 2:09 pm
> Email: "SVerdoold" <SVerdo... at gmail.com>
> Groups: comp.soft-sys.wxwindows
> Not yet rated
> Rating:
> show options
>
> Reply | Reply to Author | Forward | Print | Individual Message | Show
> original | Report Abuse | Find messages by this author
>
> I figured out what was the problem:
> the control gave back an array of int's and it seems that an array is
> not yet supported by wxactivex covnersion routines.. By using standards
> windows VARIANTS on the specific routine I managed to bypass this
> conversion. Everything works ok in that case.
>
> SVerdoold schreef:
More information about the wxpython-users
mailing list