RE: Invoking a DLL with PHP

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

 



[snip]

[snip]
You can build your own dll -or use that older dll as you say-, assuming 
it have exported the necessary functions and calling them using the 
php_w32api extension, just register necessary types, functions and 
you're ready to go, without any kind of recompilation of php or any dll 
static linking, the dll is just loaded when you register the dll 
functions from the php code using that beautiful extension.  There are 
some tricks if you take this way, in relation with the type and size of 
data you need to send or receive from the dll, but it works pretty well. 
And you could code your own dll wrapper interface to the older dll if 
some workaround is needed to have it working -perhaps callbacks, hard 
data types, etc.-
[/snip]

php_w32api extension...that sounds like a plan....I wonder why it is not
mentioned with regards to things like this?
[/snip]

I also forgot to ask if you would expand on your methodology a little,
perhaps with an example?

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux