Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'PW_RENDERFULLCONTENT': undeclared identifier in file GDIFrameProcessor.cpp #163

Open
dotcomtnu opened this issue Feb 7, 2024 · 2 comments

Comments

@dotcomtnu
Copy link

hi there,
I try to build screen_capture_lite with Windows 7 support but PW_RENDERFULLCONTENT require WINVER set to 0x0603 (Win 8.1)
Is there any option/switch to compile with Windows 7 support?
I'm using VS 2019 and Windows 10 SDK
Thank you.

@smasherprog
Copy link
Owner

I dont run win7. I remember that win7 should be super easy. I accept PR's!

@Artur202030
Copy link

I checked the last one. The library is built and available from the Example_CPP example,
on windows 7 and 10.
Except: - there is no support check for DirectX Desktop Duplication,
in the release build. It's probably here:

https://github.com/smasherprog/screen_capture_lite/blob/master/src_cpp/windows/ThreadRunner.cpp#L87

#if defined _DEBUG || !defined NDEBUG

https://github.com/smasherprog/screen_capture_lite/blob/master/src_cpp/windows/ThreadRunner.cpp#L92

#if defined _DEBUG || !defined NDEBUG

I never use CMAKE.exe, but I always read CMakeLists.txt, so

for staticLib:

<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MinSpace</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>../include;../include/windows;</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<LanguageStandard>stdcpplatest</LanguageStandard>
<DisableSpecificWarnings>4996;</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalLibraryDirectories>
</AdditionalLibraryDirectories>
<AdditionalOptions>/SAFESEH:NO %(AdditionalOptions)</AdditionalOptions>
<IgnoreSpecificDefaultLibraries>
</IgnoreSpecificDefaultLibraries>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;Dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\src_cpp\SCCommon.cpp" />
<ClCompile Include="..\src_cpp\ScreenCapture.cpp" />
<ClCompile Include="..\src_cpp\ThreadManager.cpp" />
<ClCompile Include="..\src_cpp\windows\DXFrameProcessor.cpp" />
<ClCompile Include="..\src_cpp\windows\GDIFrameProcessor.cpp" />
<ClCompile Include="..\src_cpp\windows\GDIMouseProcessor.cpp" />
<ClCompile Include="..\src_cpp\windows\GetMonitors.cpp" />
<ClCompile Include="..\src_cpp\windows\GetWindows.cpp" />
<ClCompile Include="..\src_cpp\windows\ThreadRunner.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\include\windows\GDIFrameProcessor.h" />
<ClInclude Include="..\include\windows\GDIHelpers.h" />
<ClInclude Include="..\include\windows\GDIMouseProcessor.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

change for sharedDLL:

<PreprocessorDefinitions>WIN32;NDEBUG;SC_LITE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants