php & DOTNET
| From: | Peltzer, Matthew D | Date: | Tue, 23 Aug 2005 22:59:17 +0000 |
| Subject: | php & DOTNET | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26286@lists.php.net to get a copy of this message | ||
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