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

Issues related to VMProtect
Post Reply
yggdrasil_shen
Posts: 1
Joined: Fri Sep 30, 2022 9:54 am

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

Post 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?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

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

Post 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")
...
Post Reply