Implementation |
|
|
The Implementation folder contains the project used to create the library, library_test.rmsproject.
The project consists of three parts: 1: The simple libraryThe simple library is contained in simple_lib.inc and contains a few functions, a variable and a define. They are documented using the documentation tags and have additional documentation in the help file SimpleLib.chm.
2: The encrypted libraryThe encrypted library is more complicated and consists of the following files, placed in the sub-folder example_lib: This file contains the interface and documentation for the library. It is also documented using the documentation tags and have additional documentation in the help file SimpleLib.chm. It includes the encrypted include file enc_lib_impl.enc at the end. The include file is in a sub-folder, so this must be taken into account when including the encrypted include file: INCLUDE example_lib/enc_lib_impl.enc
This file contains the implementation of the library. It is not included directly in the release of the library but must instead be encrypted via the Project View.
enc_lib_impl.enc This is the encrypted include file that is created from enc_lib_impl.inc. It is not included in the project view, but must be included in the release of the library.
3: The test applicationThe test application test_lib.vpl directly includes both simple_lib.inc and enc_lib.inc and tests the functionality of the libraries. It is not required to be part of the library, but it provides an easy way to test that the library works. As the include files are included directly and not as a library, they do not show up in the wizard and there is no help available for the functions. It is free to use the undocumented features.
To make it easier to create the library, the following post build event script is used to copy the needed files to the Library folder: mkdir ..\Library\example_lib
copy /B ExampleLib.chm ..\Library\example_lib\ copy /B simple_lib.inc ..\Library\example_lib\ copy /B example_lib\enc_lib.inc ..\Library\example_lib\ copy /B example_lib\enc_lib_impl.enc ..\Library\example_lib\
|