Page 1 of 1

VS2012 + WDM compilation issues Vmprotect 2.12

Posted: Sun Mar 31, 2013 10:55 am
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

Re: VS2012 + WDM compilation issues Vmprotect 2.12

Posted: Mon Apr 01, 2013 3:41 am
by Admin
We recommend use DDK instead of VS for build your driver. Anyway I have not any problems for build drivers in VS2010.

Re: VS2012 + WDM compilation issues Vmprotect 2.12

Posted: Mon Apr 01, 2013 6:13 am
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.

Re: VS2012 + WDM compilation issues Vmprotect 2.12

Posted: Fri Apr 05, 2013 1:44 am
by gongxp
With this option:

/Zc:wchar_t

But the compiler cannot succeed.

Microsoft new WDK 8 must use VS2012 to compile.