Re: Accessing Win32 hardware
| From: | steph dot fox at btinternet dot com | Date: | Thu, 08 Nov 2001 22:23:07 +0000 |
| Subject: | Re: Accessing Win32 hardware | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-565@lists.php.net to get a copy of this message | ||
Andrei, what's the difference between doing that and declaring GTK API differences for win32?
('fused and yet sober)
> On Thu, 08 Nov 2001, James Moore wrote:
> > What do you mean by that, at the moment I add the function into the
> > function_table by registering a new module (not the way I wanted to do it
> > but after some discussions with andi he thought this was the best way).
> > anyway every function is associated with
> > zif_w32api_invoke_function(INTERNAL_PARAMETERS) this function uses
> > get_active_function_name to get the current function that has been called,
> > it then looks up the far pointer in a local hash table and then calls the
> > function.
> > I dont quite get what you mean by overloading though..
>
> Create a class called W32Api. Have its function handler overloaded.
> Whenever user tries to call W32Api::FreeConsole() for example, your
> overload handler will be called with the name of the function and all
> the parameters and you can do whatever you want.
> zif_w32api_invoke_function will already be a pretty good base for it.
>
> -Andrei
>
> "The secret of flying is to throw yourself
> at the ground, and miss." -- Douglas Adams
>
> --
> PHP-GTK General Mailing List (<a
> href="/bti/redirect.html?http://gtk.php.net/)"
> target="newLink">http://gtk.php.net/)</a>
> To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>