Writing Libraries

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
   Embedding CSS
   Writing Libraries
   API Reference
CSS Links
  

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 or build.cmd respectively in the samples\cpp-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 library KcTstLib.cpp in in thesamples\cpp-api\source subdirectory. Use these samples as a starting point for your own DLL's.

 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>