Does anyone out there know how to create SAFEARRAY in VFP.
I have a 3rd party COM object which requirest a SAFEARRAY as a parameter and
following are the items,
"Name", <Name>
"SurName", <SurName>
"Prefix", <Prefix>

The COM object has been written in C++ by a client, and we need to use this
COM object to integrate our app with theirs.
I checked UT and found some old code related to this, but it doesn't work
and i could't figure anything out!!!

Any help on this would be much appreciated.

Re: creating safearrays in VFP by Christian

Christian
Wed Oct 05 05:20:04 CDT 2005

Hello,

have a look at COMARRAY function in help.

Regards
Christian



Re: creating safearrays in VFP by Patrik

Patrik
Thu Oct 06 18:03:20 CDT 2005

Sorry I forgot to mention that as well.
COMARRAY doesn't help.

When i used it, and then executed the COM method by passing my array into
the method,
then the following error message pops,
"ole object may be corrupt!"

"Christian Ehlscheid" <christian@nospam.de> wrote in message
news:uIQJQZZyFHA.1028@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> have a look at COMARRAY function in help.
>
> Regards
> Christian
>
>