Using .NET Framework - how?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Using .NET Framework - how?

Post 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.
Post Reply