0
|
1 |
|
|
2 |
--**-- HOWTO: Add new methods --**--
|
|
3 |
|
|
4 |
This is just a quick note that describes how to add a new method to an existing service.
|
|
5 |
|
|
6 |
The problem is that once you've written a service, you've modified the CSvc class and
|
|
7 |
the CS class, so the code generator can't update these for you. So you have to do a
|
|
8 |
couple of things manually - and this note is to make sure you don't miss something.
|
|
9 |
|
|
10 |
(1) Add to the .x file and regenerate the basic files.
|
|
11 |
|
|
12 |
(2) Add the signature to the CS.h file, put it in the correct order to keep things clean.
|
|
13 |
|
|
14 |
(3) Add the implementation to the CS.cpp file. There is nothing much to remember here,
|
|
15 |
just make sure you return a normal value (call it rv) and everything is OK.
|
|
16 |
|
|
17 |
(4) Add a section to the instance keys.
|
|
18 |
|
|
19 |
(5) Add a section to SetError().
|
|
20 |
|
|
21 |
DONE
|