VS2012 + WDM compilation issues Vmprotect 2.12

Issues related to VMProtect
Post Reply
gongxp
Posts: 3
Joined: Thu Dec 02, 2010 4:05 am

VS2012 + WDM compilation issues Vmprotect 2.12

Post by gongxp »

VMProtectDDK.h (23): error C2143: syntax error: Missing "{" ("*" in front)
VMProtectDDK.h (23): error C2143: syntax error: missing ")" ("*" in front of)
VMProtectDDK.h (23): error C2059: syntax error: ")"
VMProtectDDK.h (23): warning C4218: use of non-standard extensions: must specify at least a storage class or a type

Commented out:
__declspec (dllimport) wchar_t * __ stdcall VMProtectDecryptStringW (wchar_t * value);
Before you can compile successfully
Admin
Site Admin
Posts: 2586
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: VS2012 + WDM compilation issues Vmprotect 2.12

Post by Admin »

We recommend use DDK instead of VS for build your driver. Anyway I have not any problems for build drivers in VS2010.
Admin
Site Admin
Posts: 2586
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: VS2012 + WDM compilation issues Vmprotect 2.12

Post by Admin »

P.S. Check the option "Treat WChar_t As Build in Type" in your VS project options (Project -> Properties -> Configuration Properties -> C/C++ -> Language). It must have "Yes (/Zc:wchar_t)" value.

Hope this helps.
gongxp
Posts: 3
Joined: Thu Dec 02, 2010 4:05 am

Re: VS2012 + WDM compilation issues Vmprotect 2.12

Post by gongxp »

With this option:

/Zc:wchar_t

But the compiler cannot succeed.

Microsoft new WDK 8 must use VS2012 to compile.
Post Reply