Page 1 of 1

C++ SDK lib in v3.7.1 connection is incorrect

Posted: Fri Sep 30, 2022 10:16 am
by yggdrasil_shen
hello,
When I was using VS to connect to the SDK, VS reported a connection error。
it works in Debug x64,but VS reported it can‘t find "VMProtectSDK32.lib"
I think it maybe a bug in VMProtectSDK.h
here is the bug code:

#ifdef _M_IX86
#pragma comment(lib, "VMProtectSDK64.lib")
#elif _M_X64
#pragma comment(lib, "VMProtectSDK32.lib")
#elif _M_ARM64
#pragma comment(lib, "VMProtectARM64.lib")

I think the "VMProtectSDK32.lib" and "VMProtectSDK64.lib" code positions are reversed,is it right? Or maybe I misunderstood the author's intention。
and how to solve this connection error?

Re: C++ SDK lib in v3.7.1 connection is incorrect

Posted: Fri Sep 30, 2022 6:07 pm
by Admin
Try the following code:

Code: Select all

#ifdef _M_IX86
#pragma comment(lib, "VMProtectSDK32.lib")
#elif _M_X64
#pragma comment(lib, "VMProtectSDK64.lib")
...