The screenshot won’t be sufficient for us to know what exactly the issue is. Please use our sample code from GitHub to replicate this error and then share that sample code with us.
The sample code that you have shared does not have Lexactivator.lib linked to it, getting an error fatal error LNK1104: cannot open file 'x86/LexActivator.lib' is expected. So you need to download the Lexactivator library from the link given below:
After downloading the static Lexactivator library, place Lexactivator.lib and libcurl_MD in the x86 or x64 directory(depending upon the system architecture) of your sample project. Then, uncomment the block of code for windows static build in sample.cpp. Doing this should resolve the issue.
Yes, you have linked both Lexactivator.lib and libcurl_MD, but as mentioned in Sample.cpp that for windows static build the block of code from line number 6 to line number 18 needs to be uncommented which in your case is still commented.
Attached is the screenshot of how your code should look.
Hello Ahmad,
Apologies for this delay in responding back. Yes, It was a library issue. I downloaded the library again and linked it. The program compiled but faced an issue again. When i use SetLicenseKey(CSTRTYPE(buff));, it throws an error “License activation failed:54” but when I hard code the license key like SetLicenseKey(L"xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx"); it works,