Skip to main content

First Application - Hello, Glasswall

This section describes the steps required to ensure your application has been linked with or has loaded the Glasswall SDK Library successfully. The Glasswall engine is developed in C++ but also included with the SDK are four wrappers allowing use of the Glasswall Library with C#, Java, JavaScript and Python.

This section provides example code for the ‘Hello Glasswall’ example in C++ and each of the four wrapper languages. This code calls the Glasswall SDK ‘Get Library Version’ function. Glasswall will return the version number of the library in use.

Steps​

  • Ensure that the Glasswall SDK has been installed successfully.
  • Create a new project/solution in your preferred IDE and link it to the glasswall_core2 library.
  • Use the following sample code to return the version number:

Test Application Code​

int main()
{
printf("> Request Library version...\n");
printf("> Library Version: %s\n", GW2LibVersion());
return 0;
}

Output​


<... other output removed ...>

> Request Library version...

> Library version: 2.0


Please note that the version number and any additional information returned is dependent on the version of Glasswall installed.