[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    [PHP-WIN] php & DOTNET
From:       "Peltzer, Matthew D" <matthew.d.peltzer () hp ! com>
Date:       2005-08-23 22:59:17
Message-ID: 51E9B8FBB414C44A9A2CB19A5F4F5DD904A9D84F () cacexc03 ! americas ! cpqcorp ! net
[Download RAW message or body]

Does the DOTNET class work?

When I load the example code:

	$stack = new DOTNET('mscorlib', 'System.Collections.Stack');
	$stack->Push(".Net"); 
	$stack->Push("Hello "); 
	echo $stack->Pop() . $stack->Pop();

I get a com_exception with the message: 'Failed to instantiate .Net
object [CreateInstance] [0x80070057] The parameter is incorrect'.

If I change the first line to:

	$stack = new COM('System.Collections.Stack');

Everything seems to work ok.

I've seen some many-months-old posts with this same problem, but no
solutiuon or any reply at all is attached.

Also, I find if I try DOTNET/COM on apache, things crash, so for now I'm
running under IIS.  I've tried php 5.0.4, and the 2005.08.22 snapshot
under IIS 5.1 (Windows XP SP1) & apache 2.0.54.0 (i.e., xampp 1.4.15).



--Matthew Peltzer
--matthew.d.peltzer@hp.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic