Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-26-2009, 02:17 AM   PM User | #1
kaisellgren
Regular Coder

 
Join Date: Jan 2006
Location: Finland, Hollola
Posts: 285
Thanks: 8
Thanked 0 Times in 0 Posts
kaisellgren is an unknown quantity at this point
Using .NET Framework - how?

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.

PHP Code:
$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.
__________________
PHP 5 & MySQL 5 (Y)

Last edited by kaisellgren; 03-26-2009 at 02:20 AM..
kaisellgren is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:14 PM.


Advertisement
Log in to turn off these ads.