php & DOTNET

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx

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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux