Manifest.rc
Code: Select all
1 24 "Include/Manifest.txt"
CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Code: Select all
1 24 "Include/Manifest.txt"
Code: Select all
porc.exe /R E:\Folder\Manifest.rc
What I need is to add <dpiAware>true</dpiAware> in manifest without going through the DPIaware compiler option. I want to manage the scaling by myself without PB handling it.Linker error
CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
it seems to be possible to disable PB's scaling on runtime, with it's global variables.ChrisR wrote: Fri Dec 29, 2023 5:00 pm What I need is to add <dpiAware>true</dpiAware> in manifest without going through the DPIaware compiler option. I want to manage the scaling by myself without PB handling it.
Code: Select all
Import ""
PB_Desktop_DPIX.l
PB_Desktop_DPIY.l
PB_Desktop_ResolutionX.d
PB_Desktop_ResolutionY.d
EndImport
CompilerIf #PB_Compiler_Backend = #PB_Backend_Asm
!mov dword [PB_Compiler_DPIAware], 0
CompilerElse
Import ""
PB_Compiler_DPIAware.l
EndImport
PB_Compiler_DPIAware = 0
CompilerEndIf
PB_Desktop_DPIX = 96
PB_Desktop_DPIY = 96
PB_Desktop_ResolutionX = 1.0
PB_Desktop_ResolutionY = 1.0