>>-- cut --
>Have you dont this yourself personally?( am i a coward or what? )
I have my own subclass of wwProcess wich contain a dozen of methods that I use in almost all projects.
Dont be afraid, you do this all the time :)
The custom process class created by the project wizzard is a subclass of the wwProcess class you know...
You simply have to add one level of inheritance in the process.
Normally it is:
-> wwProcess
--> yourProcess
Now it is:
-> wwProcess
--> subProcess
---> yourProcess
BTW, The WCONNECT.H changes described earlier is to replace wwProcess with your own one.
If you only want to subclass wwProcess, you have to do it elsewhere.
The complete steps are like this:
You create a class prg:
DEFINE CLASS ProcessShared AS WWC_PROCESS
ENDDEFINE
I order to use your subclass you have do some changes in the 2 wizzard generated file (process and server)
Change this in the generated process code:
DEFINE CLASS Processcode AS ProcessShared
You have to add a set proc to in the server (yourclassMain) prg.
There is already a placeholder in the file.
SET PROC TO ProcessShared.PRG ADDITIVE
This is the way I do this and it work perfectly.
HTH :)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca