Re: Accessing Win32 hardware

From: Date: Thu, 08 Nov 2001 20:50:01 +0000
Subject: Re: Accessing Win32 hardware
References: 1 2 3 4 5 6 7 8 9  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-563@lists.php.net to get a copy of this message
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

« previous php.gtk.general (#563) next »