Click to See Complete Forum and Search --> : com


heejung
06-24-2001, 02:31 PM
i'm having problems passing an array to my com object.

the object works fine w/ ASP:
Dim X(10);
Obj.X = X;

when i try to do the same w/ PHP, i get the following errors (b.t.w., i have no problems passing scalar values):

Warning: PropPut() failed: Exception occurred. in xxx.php on line 90
or
Warning: Unsupported variant type: 8204 (0x200C) in xxx.php on line 237

i tried using VARIANT & that didn\'t seem to help...

The interfaces in my idl file looks like this:
[propput, id(32), helpstring(\"property X\")] HRESULT X([in] VARIANT newVal);
[propget, id(32), helpstring(\"property X\")] HRESULT X([out, retval] VARIANT *pVal);



any help or clue would be greatly appreciated.

thanks!