Jump to content

William23668

Members
  • Content Count

    117
  • Joined

  • Last visited

Posts posted by William23668


  1. Hi

    Sorry was not clear at first. I need to change Windows 11 desktop colors in real time like those filters:

     

    image.thumb.png.3ddb97a6cd26aa2ae0eef66947a19dc4.png

     

    I think I need to change every pixel color like a GPU driver. Can Delphi do that ? where to start ? Is there a library I can use ?

     

    Thanks


  2. 15 minutes ago, Anders Melander said:

    I'm not sure but I think it needs to be installed using some sort of installer which then generates the include file based on something, something, whatever, at this point I gave up and deleted everything.

    They only write to use jcl\install.bat in github 


  3. Hi 

     

    I got this email :

     

    Quote
    Webinar: What’s New in Visual Assist 2024
    March 13th, 2024 - 10 AM CST
     
    Dear ,
     
    Did you know sister company Whole Tomato's highly popular Visual Assist 2024.1 can parse and open an Unreal Engine project up to 15 times faster than the previous version of Visual Assist?
     
    If you work with C++Builder, you'll want to know that C++Builder 12 Athens now comes with Visual Assist.

    Is this mean C++ Builder can now work with Unreal engine ?


  4. Hi

    I get this error:

     

    [dcc32 Hint] H2161 Warning: Duplicate resource:  Type 24 (user-defined), ID 1; File H:\myapp\myapp.res resource kept; file c:\program files (x86)\embarcadero\studio\23.0\lib\Win32\debug\WindowsXP.res resource discarded.

    I googled and searched if there is res duplication but could not found any, how I fix this error ?


  5. Hi

     

    I searched for solution and found in stack overflow two methods but still not getting what I need. The code I use that need admin level :

     

    Handle := CreateFile(pchar('\\.\PhysicalDrive' + IntToStr(DiskNumber)), GENERIC_READ, FILE_SHARE_READ  , nil, OPEN_EXISTING, 0, 0);

     

    It return invalid handle. So I created this manifest to debug run the app as admin and include it in my app source folder:

     

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
        <assemblyIdentity
            version="1.0.0.0"
            processorArchitecture="*"
            name="myapp"
            type="win32"
        />
        <description>My Delphi Application</description>
        <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
            <security>
                <requestedPrivileges>
                    <requestedExecutionLevel
                        level="requireAdministrator"
                        uiAccess="false"
                    />
                </requestedPrivileges>
            </security>
        </trustInfo>
    </assembly>

    included this line in my dpr source:

    {$R *.res}
    {$R 'myapp.manifest'}

    but I get this error:

    Quote

    RLINK32: Unsupported 16bit resource in file "H:\myapp\myapp.manifest"

    I saved the file as text utf-8 

     

    I tried another method to include this "SetEnvironmentVariable" line in the dpr source

    begin
      Application.Initialize;
      SetEnvironmentVariable('__COMPAT_LAYER', 'RunAsAdmin');
      Application.MainFormOnTaskbar := True;
      Application.CreateForm(TForm2, Form2);
      Application.Run;
    end.

    But I still get invalid handle so I think SetEnvironmentVariable did not work, any ideas ?

     

    When I run the exe as admin from explorer I dont get this invalid handle error.

     

    Delphi 12 and Windows 11 Pro

     

    Thanks

     


  6. Thanks guys sorry I did not receive email notification from this one.

     

    On 12/18/2023 at 12:07 PM, Roger Cigol said:

    You could tell us a bit about yourself too. Experience, interests, What version of RAD Studio you have etc etc. Do you have any C++ expertise ?

    I used all Delphi versions old and new from Delphi 1.0 to current version. I have skills in PHP, Javascript/TypeScript, SQL, CSS, C# and I can use C++ Builder without a problem as it wont be hard to convert my Delphi knowledge into C++ syntax. I created systems like ERP and POS (Windows + Web) and also hardware integration through different ports.

×