Source Code and Examples

Examples are Based on Programming Language

These examples show you how to access a SmartDongle in various programming languages.

Please note: These examples are zip files and will require you to download the file to your computer. Also, if you are using Microsoft Visual Studio, you need to add setupapi.lib to the libraries used by the linker.

Examples and Source Code

New: Reading and writing an executable function to a SmartDongle.
This series will show you how to store executable code on a dongle to help secure your software product!

Source Code for the above examples:

  • Write Previous Prime – This writes a function that calculates the previous prime number for a given input number
  • Write Next Prime – This writes a function that calculates the next prime number for a given input number
  • Read Function – This example shows how to read a function from the dongle and execute it!

Reading and Writing to SmartDongle