Page 1 of 1

Requirements for Windows 7

PostPosted: Tue Mar 07, 2017 10:57 am
by Easy1
Hi everybody!

Are there some special requirements to run CEF on Windows 7 32bit machine?
I built CEF branch = 2704 with Visual Studio 2015 Update 2 on a Windows 10 64bit machine, and I want to use CEF also on a Windows 7 32bit machine.
But now I get some problems on Windows 7, when I want to print a PDF and cancel the printing dialog.
Sometimes I get sporadically access violation exceptions, in the comctl32.dll. My question is now, if there are some requirements on the windows 7 32bit machine, so I can use CEF.

Details:
JCEF Version = 3.2704.150
CEF Version = 3.2704.1434
Chromium Version = 51.0.2704.103

I also found out, that in the cef_variables.cmake.in file (2704\chromium\src\cef\cmake\cef_variables.cmake.in), a WINVER is set to targeting Windows 8.
Is it possible that this is the reason why I have problems on Windows 7, but not on Windows 8 or 10 (both 64bit)?

list(APPEND CEF_COMPILER_DEFINES
WIN32 _WIN32 _WINDOWS # Windows platform
UNICODE _UNICODE # Unicode build
WINVER=0x0602 _WIN32_WINNT=0x602 # Targeting Windows 8
NOMINMAX # Use the standard's templated min/max
WIN32_LEAN_AND_MEAN # Exclude less common API declarations
_HAS_EXCEPTIONS=0 # Disable exceptions
)

Thanks for your help!

Re: Requirements for Windows 7

PostPosted: Tue Mar 07, 2017 11:11 am
by magreenblatt
You can change the value to 0x601 and see if that makes a difference.

Re: Requirements for Windows 7

PostPosted: Wed Mar 08, 2017 2:38 am
by Easy1
OK I will try it!
Thank you for your really fast answer!

Re: Requirements for Windows 7

PostPosted: Thu Mar 09, 2017 2:46 am
by Easy1
I changed WINVER and _WIN32_WINNT from 0x602 to 0x601 and built it again. But unfortunately my problem with the JVM Crash still exists.
Are there any other requirements or settings that I could change?