For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-C
#include <cstdint>

// a file named Aspose.Words.lic is 'imported' into an object file 
// using the following command:
//
//      ld -r -b binary -o aspose.words.lic.o Aspose.Words.lic
//
// That creates an object file named "aspose.words.lic.o" with the following 
// symbols:
//
//      _binary_aspose_words_lic_start
//      _binary_aspose_words_lic_end
//      _binary_aspose_words_lic_size
//
// Note that the symbols are addresses 

extern uint8_t _binary_aspose_words_lic_start[];
extern uint8_t _binary_aspose_words_lic_end[];
extern uint8_t _binary_aspose_words_lic_size[];

std::ptrdiff_t size = &_binary_aspose_words_lic_end - &_binary_aspose_words_lic_start;

auto licResource = System::MakeArray<uint8_t>(size);
std::copy(_binary_aspose_words_lic_start, _binary_aspose_words_lic_end, licResource->begin());

auto license = MakeObject<License>();

try
{
    license->SetLicense(MakeObject<System::IO::MemoryStream>(licResource));
    std::cout << "License set successfully." << std::endl;
}
catch (System::Exception& e)
{
    std::cout << (String(u"\nThere was an error setting the license: ") + e->get_Message()) << std::endl;
}