I need to make my program dpi-aware.
I created a file "dpiaware.manifest":
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2001/WindowsSettings">
<dpiAware>true</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
and saved the file in my main project folder.
There I also created a file "resources.rc":
And then I compiled.
But the compiled *.exe is not dpi aware.
It is dpi aware if I rename the manifest file to *.exe.manifest and ship it with my program.
But I want to integrate the manifest file into my program exe file.
I do not want to use Visual Basic or any Microsoft tools like "mt.exe".
I want to do everything with Code::Blocks.
Please help me to find the right steps.