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

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

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

Postby yggdrasil_shen » Fri Sep 30, 2022 10:16 am

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: 2299
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

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

Postby Admin » Fri Sep 30, 2022 6:07 pm

Try the following code:

Code: Select all

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