|
Posted by Jay Blanchard on 10/18/05 15:29
[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?
[Back to original message]
|