note 21110 deleted from function.dotnet-load by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 03:45:36 +0000 |
| Subject: | note 21110 deleted from function.dotnet-load by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207437@lists.php.net to get a copy of this message | ||
Note Submitter: mb at netminers dot dk
----
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