Content
This short example shows how to license ReconstructMe SDK for commerical usage.
Boost is only used to generate examples and is not necessary for working with this SDK.
#include <boost/test/unit_test.hpp>
#include <stdio.h>
#include <iostream>
#include <fstream>
BOOST_AUTO_TEST_SUITE(example_reconstructmesdk)
BOOST_AUTO_TEST_CASE(license) {
puts("Now running in commercial mode");
} else {
puts("Failed to authenticate.");
}
std::ifstream ifs("license.txt.sgn");
std::string loaded_license((std::istreambuf_iterator<char>(ifs)),
std::istreambuf_iterator<char>());
puts("Now running in commercial mode");
} else {
puts("Failed to authenticate.");
}
std::string hasp_dll("hasp_windows_<vendor_id>.dll");
std::string hasp_vendor_code(".....");
puts("Now running in commercial mode");
} else {
puts("Failed to authenticate.");
}
}
BOOST_AUTO_TEST_SUITE_END()