Wide Studio Application Builder User's Guide

Wide Studio Home
Up to


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.
  • A name of the procedure
    The instance has many event procedures,so they have their name to identify.
  • A c++ function
    The event procedure has a function which coded with c++ language. Tt executes the function,if the event is fired.
  • A trigger
    The event procedure waits for the event on the client instance. If the event is fired,it executes its function.



[The event procedure]



The function for the event procedures

The 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


Wide Stuido Home | Up to

Copyright(C) T. Hirabayashi, 2000-2001 Last modified: August 20, 2001