Writing Libraries |
|
Writing a CSS library is easy and gives you the opportunity to provide a professional script interface to your application. You should make yourself familiar with the concept of DLL's in your compiler documentation. For your convenience you can consult the files build.bat/build++.bat or build.cmd/build++.cmd respectively in the samples\c-api subdirectories to see what compiler and linker switches are required. Your library must export 2 entries: initialize and cleanup. initialize is called when the DLL gets loaded. You use the API to define global var's and const's and load functions at startup. cleanup will be called when the DLL is unloaded so you can perform any tidy up before the CSS handle is closed. You will find the sample libraries KcTstLib.c/KcTstLib.cpp in in thesamples\c-api\source subdirectories. Use these samples as a starting point for your own DLL's. | ||||||||
Copyright © IBK Landquart | Last revised by Peter Koch, 24.02.00 | << Back Top Next >> |