Usage

Top  Previous  Next

The Implementation folder contains the a project that uses the library, use_library.rmsproject.

 

This project consists of a single source file, use_library.vpl, that includes the include file from the library and uses it.

The project is configured with a user include path pointing at $(ProjectPath)\library, making the library available in the sub-folder example_lib.

 

 

To include the simple library, the source file calls:

INCLUDE example_lib/simple_lib.inc

 

It can then use the features of the library:
  SimpleLibInit();
 
  SimpleLibBoardInfo();
 
  DebugMsg(message:="Main password   : "+MAIN_PASSWORD);
  DebugMsg(message:="Device password : "+generated_password);
 
 

To use the encrypted library, it calls:

INCLUDE example_lib/enc_lib.inc

 

It can then use the encrypted function:

  DebugFmt(message := "enc_func(2,3) = \1", v1:=enc_func(v1:=2, v2:=3));

 

 

 

The library features are available from the User Library Wizard:

user_library_menu