![]() |
What is the event procedure?The event procedure is a procedure which you can code with usual knowledge of C++ language. It is used to do something on the event fired, and to realize a complicated function which is too difficult to realize with only object.It has a trigger and a client instance, and is executed when the trigger is fired on the client. See the programmer's guide. The following shows what the event procedure has.
![]() [The event procedure] The function for the event proceduresThe function has a parameter which passes the client object pointer.The following function is a template that the application generated. #include <WScom.h> #include <WSCfunctionList.h> #include <WSCbase.h> //---------------------------------------------------------- //Function for the event procedure //---------------------------------------------------------- void sample(WSCbase* object){ //do something... } static WSCfunctionRegister op("sample",(void*)sample); Document Release 3.0 For Use with Wide Studio Release 3.0, Summer 2002
|