Page 1 of 1

Using .NET Framework - how?

Posted: Wed Mar 25, 2009 6:17 pm
by kaisellgren
Hi,

I am trying to use .NET Framework in PHP.

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

Code: Select all

$asd = array(0);
$v = new VARIANT($asd,VT_ARRAY);
$com->GetBytes($v);
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.