note 21110 added to function.dotnet-load

From: Date: Mon, 29 Apr 2002 15:34:55 +0000
Subject: note 21110 added to function.dotnet-load
Groups: php.notes 
Request: Send a blank email to php-notes+get-29983@lists.php.net to get a copy of this message
Now we are working! Well that means that if you want to use the .NET modules, from PHP, you'll have to build a new php_dotnet.dll file. The problem with the existing code is the interface versions of the COM object needed to mix unmanaged code with managed code. To fix this minor issue, replace #include "mscorlib.h", in the extensions project of the PHP4.2 source, with the following type library binary file import. #import "mscorlib.tlb" raw_interfaces_only high_property_prefixes("_get","_put","_putref") The type library file is converted to a type library header file which is then automatically included by Visual Studio, presuming you are using that. :o) Have fun! (Mail me if this description was too bad, I can mail the new php_dotnet.dll) By the way the tlbexp.exe SDK tool can generate the .tlb file. I'll check with the PHP group to verify they are aware of the issue, so it's nicely fixed in a future release of PHP. Great stuff, Michael -- http://www.php.net/manual/en/function.dotnet-load.php http://master.php.net/manage/user-notes.php?action=edit+21110 http://master.php.net/manage/user-notes.php?action=delete+21110 http://master.php.net/manage/user-notes.php?action=reject+21110

« previous php.notes (#29983) next »