FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Manifest
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Manifest
Posted: Thu Oct 27, 2022 01:43 PM
WINDOWS10.MANIFEST
Code (fw): Select all Collapse
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 
  <dependency optional="yes"> 
    <dependentAssembly> 
      <assemblyIdentity name="Microsoft.Windows.Common-Controls" 
        version="6.0.0.0" publicKeyToken="6595b64144ccf1df" 
        type="win32" processorArchitecture="*" language="*" /> 
    </dependentAssembly> 
  </dependency> 
  <application xmlns="urn:schemas-microsoft-com:asm.v3"> 
     <windowsSettings> <dpiAware      xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>                     </windowsSettings> 
     <windowsSettings> <dpiAwareness  xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2,PerMonitor</dpiAwareness> </windowsSettings> 
     <windowsSettings> <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>                   </windowsSettings> 
     <windowsSettings> <heapType      xmlns="http://schemas.microsoft.com/SMI/2020/WindowsSettings">SegmentHeap</heapType>                 </windowsSettings> 
  </application> 
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> 
    <security> 
      <requestedPrivileges> 
        <requestedExecutionLevel level="asInvoker" uiAccess="false" /> 
      </requestedPrivileges> 
    </security> 
  </trustInfo> 
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> 
    <application> 
      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> 
      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" /> 
      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" /> 
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" /> 
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" /> 
    </application> 
  </compatibility> 
</assembly>
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Manifest
Posted: Fri Oct 28, 2022 03:39 AM
hi,
karinha wrote:
Code (fw): Select all Collapse
processorArchitecture="*"
YES, that will work with "x86" an "amd64"
greeting,

Jimmy
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Manifest
Posted: Thu Nov 03, 2022 10:57 PM
Going back to my original question, DO WE REALLY NEED TO USE A MANIFEST ?

I have tried the many suggestions here, including the default ones shipped with FWH. In many cases, the suggested formats work with 32 bit, but I have not found any that work with 64 bit. Some will produce errors with both builds.

I put in a lot of time, and cannot achieve success. My program seems to run without a manifest file, but maybe something would be better if I include one.

Finally, If I specify the manifest file name in the .rc, does that mean the file itself is then linked into the application ? Do I still need to have the file in the program execution directory ?
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Manifest
Posted: Fri Nov 04, 2022 08:12 AM
hi Tim,

do you want that your App look under Windows XP, 7, 8, 10, 11 like "other" Control ?

than you need Manifest for "Visual Style"
Fivewin does have
WindowsXP.Manifest
WindowsXP.Manifest64
Windows10.Manifest
Windows10.Manifest have enhance Setting for OS > VISTA where we got DWM and those transparency Look
but it is for 32 Bit
Code (fw): Select all Collapse
processorArchitecture="x86"
---

use this enhance Manifest from karinha
https://forums.fivetechsupport.com/viewtopic.php?t=42360&start=15
and save it as Windows11.Manifest

it does use
Code (fw): Select all Collapse
processorArchitecture="*"
so it work for 32 Bit and 64 Bit

it also have Setting for DPIaware so your App will not react when User set SCALE to 200 %

it will work with your last Version Setting when include this line before
Code (fw): Select all Collapse
1 24 "Windows11.Manifest"
1 VERSIONINFO
...
---

what you can NOT do, when using Manifest and Visual Style, are Color of Control
these Colors might not "visible" while "Visual Style" does "over-paint" it e.g. BUTTON.

so if you try to use "Dark Mode" there will be a lot Parts which can not (simple) "color it"
greeting,

Jimmy
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Manifest
Posted: Fri Nov 04, 2022 05:46 PM
Thank you. I resolved the VERSIONINFO yesterday, and that manifest works.

I have one more question.

I notice when having winapi.ch in my .rc file, there are a huge list of redefinitions. Is this file still required ?
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Manifest
Posted: Sat Nov 05, 2022 05:52 AM
hi Tim,
TimStone wrote:I resolved the VERSIONINFO yesterday, and that manifest works.?
fine :D
TimStone wrote: I notice when having winapi.ch in my .rc file, there are a huge list of redefinitions. Is this file still required ?
delete it and you will see what happens ... :wink:

it might be that you have try to use Constant from winapi.ch for VERSIONINFO ... but using HEX Value you need no Constant
greeting,

Jimmy
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Manifest
Posted: Mon Nov 07, 2022 08:43 PM

I had no consequence for deleting winapi.ch.

When including it, the .mak script returns lots of warnings as values are redefined.

Without it, there are no warnings.

So far I see no difference in appearance or performance.

So it appears to be OK ...

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion