View Full Version : Using .NET Framework - how?

03-26-2009, 03:17 AM

I am trying to use .NET Framework in PHP.

The component loads fine, but the component expects an array of bytes as the parameter.

$asd = array(0);
$v = new VARIANT($asd,VT_ARRAY);
That does not seem to work. I have this error: Fatal error: Uncaught exception 'com_exception' with message 'Error [0x80070057] The parameter is incorrect.

Any ideas? Using anything else except VT_ARRAY will give me "type mismatch" error, so VT_ARRAY is definitely the right choice, but I can't seem to make the parameter correct.