Simkin on Windows CE
Since version 2.14 Simkin has been available for Windows CE 3.0.
The porting effort was generously funded by HP Labs in Bristol.
There are various issues with the support for C++ on Windows CE 3.0:
- C++ Exceptions are not supported
- C++ Streams are not supported
- Unicode characters are used
Simkin contains preprocessor directives to provide a special version of the library to address these issues:
- EXCEPTIONS_DEFINED
if undefined, code using C++ exceptions is disabled.
An skExecutableContext object is passed to method calls which uses an skScriptError object to catch any errors that would normally be thrown as a C++ exception.
- STREAMS_ENABLED
if undefined this disables all the code within Simkin which relies on C++ streams
- UNICODE_STRINGS
if defined, this enables code which uses unicode wide character strings rather than standard 8-bit characters
In order to run the library examples in Windows CE, you will need to copy the Simkin script files (either TreeNode or XML) onto the device, and save them in Unicode format.
The Windows CE version works with either TreeNode format files, or with a special version of the Expat XML parser, which can be downloaded from the Simkin site. We are not aware of a version of the Xerces XML parser which works on Windows CE.
Project files for Embedded C++ version 3.0 have been provided.
You may also be able to use the Microsoft MSXML classes in Windows CE.