Groups > Borland > Borland C plus plus builder Active X > Re: pointer to a strings list




Re: pointer to a strings list

Re: pointer to a strings list
Thu, 2 Aug 2007 09:51:07 -0700
"Davide" <d.righi@matx.it> wrote in message
news:46b1aca6@newsgroups.borland.com...

> i wish to use a pointer to a List of BSTR (or WideString) in
> my Methods / Events or an Array of  BSTR
> is it possible? is there a specific documentation?

In ActiveX, you need to use a SAFEARRAY for that.  Look at the
SafeArray...() function in the API, or the various wrapper classes in the
VCL's safearry.h header file.

If you want your ActiveX control to be accessible to scripting environments
(Javascript, VBScript, etc), then you will have to put that SAFEARRAY inside
of a VARIANT.


Gambit

Post Reply
pointer to a strings list
Thu, 2 Aug 2007 12:06:26 +0200
hello, i'm trying to write a VCL-based ActiveX component with BCB5

i wish to use a pointer to a List of BSTR (or WideString) in my Methods / 
Events
or an Array of  BSTR
is it possible? is there a specific documentation?

which Type and systax i must use.. ?
STDMETHODIMP TMyComp::f( ??(BSTR?) ???????)
{
}

thanks Davide.

Post Reply
Re: pointer to a strings list
Fri, 3 Aug 2007 09:07:55 +0200
i'll try

thanks !

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel
messaggio 
news:46b20ba3$1@newsgroups.borland.com...
>
> "Davide" <d.righi@matx.it> wrote in message
> news:46b1aca6@newsgroups.borland.com...
>
>> i wish to use a pointer to a List of BSTR (or WideString) in
>> my Methods / Events or an Array of  BSTR
>> is it possible? is there a specific documentation?
>
> In ActiveX, you need to use a SAFEARRAY for that.  Look at the
> SafeArray...() function in the API, or the various wrapper classes in the
> VCL's safearry.h header file.
>
> If you want your ActiveX control to be accessible to scripting 
> environments
> (Javascript, VBScript, etc), then you will have to put that SAFEARRAY 
> inside
> of a VARIANT.
>
>
> Gambit
>
> 

Post Reply
about | contact