...

View Full Version : Using .NET Framework - how?



kaisellgren
03-26-2009, 02:17 AM
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.


$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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum