# NixUniversalSDK Wrapper - Example C Code

## Overview
This folder contains `NixUniversalSDK.Wrapper.h`. This C/C++ header file contains macros and function declarations for the exported functions available in `NixUniversalSDK.Wrapper.dll`. This folder also contains `example.c` which is a basic console application that demonstrates the usage of the NixUniversalSDK wrapper in a C application.

## Building `example.c`
1. Edit the `LICENSE_OPTIONS` and `LICENSE_SIGNATURE` macros to match your license codes.
2. Refer to https://nixsensor.github.io/nix-universal-sdk-windows-doc/docs/wrapper.html for further details on how to build the wrapper project and generate an import library.
3. Open a Developer Command Prompt for VS2022. For x64 builds, make sure to use x64 Native Tools command prompt.
4. Build the example code using the `cl` command.

```shell
cl example.c NixUniversalSDK.Wrapper.lib
```

5. Run the resulting `example.exe` file to test the example code.