Re: EuCOM and VARIANT arrays of BSTR

new topic     » goto parent     » topic index » view thread      » older message » newer message
axtens said...

Right, after a bit of instrumenting the code, I discovered that it's the

  make_variant( var, VT_ARRAY + VT_BSTR, psa )  

... and as scooby, over on #euphoria pointed out, 'var' has been declared but not allocated. Oops, my bad.

Sadly, however, adding

    var = allocate( 16 ) 

still doesn't actually fix the problem. And it makes me wonder ... if that allocate is local to the function, it would go out of scope on return.

With that in mind I tried passing a variant in, but so far no go.

I'm running out of ideas. For now, I'm going to fudge an array by delimiting with tabs and expecting the caller to do a Split( ..., vbTab ).

Kind regards,

Bruce.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu