![]() |
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 1.3 For Use with Wide Studio Release 1.3, Summer 2001
|