Contents Back Forward |
Appendix B: Using CSPL Companion |
B.1 What is CSPLCompanion? The CSPL companion is a tool used to help the designer manage CSPL operations. You can find it in the Tools subdirectory of the CSPL package. Up to now it is just a simple batch file, but when I find more time it will become a complete stand-alone process. CSPL Companion has two main functions: It is used to create templates of csplclient source code files and to automate compiling and linking operations. | |
B.2 Before starting CSPLCompanion Before using CSPLCompanion you should install the Borland C++ compiler and perform a slight modification to the CSPLCompanion.bat file: Right-Click on the CSPLCompanion.bat file and select modify from the pop-up menu. Notepad should open with the CSPLCompanion.bat file in it, and the first three rows should be: REM PLACE YOUR BORLAND PATH AND CSPL PATH IN THE FOLLOWING BRACKETS SET BORLANDPATH=" BORLAND PATH HERE " SET CSPLPATH=" CSPL PATH HERE " Now, as explained by the REM line, place the path in which you installed the Borland Compiler and the CSPL pack between the brackets. (So if you installed the compiler in C:\programs\borland the second row should be changed to SET BORLANDPATH="c:\programs\borland"). Now save the changes, exit from notepad, and you're ready to use CSPLCompanion. | |
B.3 Using CSPLCompanion CSPLCompanion can be invoked without any parameter or with a single parameter. The parameter tells CSPLCompanion the working path (the directory in which your source files will be located), but if no parameter is invoked then the standard working directory (".\WorkSpace") is used. When CSPLCompanion is launched it will shown the following screen: ![]() As you can see the third line shows the current working directory, which is where subsequent actions will take place. From this screen the user can copy new CSPL template files into the working directory (overwriting every previously written CSPLClient file) by pressing the "1" key. The user can compile and link the CSPLClient program previously written in the working directory by pressing the "2" key. Finally, the user can leave the program simply pressing "3" at this screen (Notice that if the working directory doesn't exist, CSPLCompanion will create one). |