Click to See Complete Forum and Search --> : Passing Arrays from VB Client to a VC++ DCOM Server


Krishna Kadali
October 22nd, 1999, 05:26 PM
Hi,

I am trying to pass an Array of BSTRs from a VB client to a DCOM server implemented in VC++ running in MTS.

My API is expecting a ([in] VARIANT MyArray)

In my VB client, I am creating a dynamic array of strings and passing that as parameter to my DCOM function.

In my server, I am getting my SAFEARRAY count correctly, but when I try to access the data, I am not getting the data. When I look at the SAFEARRAY in server, MyArray.parray contained a pointer to my string.

I am not sure what I am doing wrong. ANy help would be greatly appreciated.

Thanks,
Krishna.