Jump to content

PeterPanettone

Members
  • Content Count

    1354
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by PeterPanettone


  1. 2 minutes ago, Remy Lebeau said:

    Wow, what a coincidence, so am I :classic_biggrin: And what I showed works just fine in 12.2.

    This is indeed very strange. I have also discovered that when I use my previous code version:

    const
      {$IFNDEF PROCESS_QUERY_LIMITED_INFORMATION} 
      PROCESS_QUERY_LIMITED_INFORMATION = $1000;
      {$ENDIF}

    ...then I can compile/build my app, but when I run it from the IDE, I get F2084 Internal Error: AV50A9A35E(509E0000)-R00000000-0 shown in the Structure view (without affecting my app at runtime). So I now simply declare the variable without any compiler conditionals, which resolves all compiler problems.


  2. 11 hours ago, Remy Lebeau said:

    That won't work, as PROCESS_QUERY_LIMITED_INFORMATION is not a conditional you can test with {$IFNDEF}. Use {$IF NOT DECLARED} instead:

    
    {$IF NOT DECLARED(PROCESS_QUERY_LIMITED_INFORMATION)}
    const
      PROCESS_QUERY_LIMITED_INFORMATION = $1000;
    {$IFEND}

    Your code creates a compiler error:

    {$IF NOT DECLARED(PROCESS_QUERY_LIMITED_INFORMATION)}// [dcc32 Error] Common.pas(382): E2070 Unknown directive: ''
    const
      PROCESS_QUERY_LIMITED_INFORMATION = $1000;
    {$IFEND}

     


  3. 2 hours ago, Remy Lebeau said:

    That won't work, as PROCESS_QUERY_LIMITED_INFORMATION is not a conditional you can test with {$IFNDEF}. Use {$IF NOT DECLARED} instead:

    
    {$IF NOT DECLARED(PROCESS_QUERY_LIMITED_INFORMATION)}
    const
      PROCESS_QUERY_LIMITED_INFORMATION = $1000;
    {$IFEND} 

     

    Hello Remy Lebeau,

     

    Thank you for your answer. However, the Delphi 12.2 compiler seems to accept this as a conditional compilation:

     

    image.thumb.png.2b25d550a944bb2c8abb54d17e3608ac.png

     

    The code compiles without errors.


  4. Hello DelphiUdIT,

    Thanks for the hint. How would you reference PROCESS_QUERY_LIMITED_INFORMATION from WinMD?

     

    I need to use it in this context:

      hProcess := Winapi.Windows.OpenProcess(
        PROCESS_QUERY_LIMITED_INFORMATION, // cannot be retrieved from Winapi.Windows
        False,
        ProcessID
      );

    So I implemented it as  a local constant:

    const
      {$IFNDEF PROCESS_QUERY_LIMITED_INFORMATION}
      PROCESS_QUERY_LIMITED_INFORMATION = $1000;
      {$ENDIF}

     


  5. Unfortunately, Delphi does not natively support having separate persistent editor tab sets for each project inside a project group.

    Delphi’s Project Group (.groupproj) by default shares a single editor tab layout across all projects in the group — which can be frustrating when switching between projects in a Project Group.

    Is there a custom way to AUTOMATICALLY switch between separate tab sets when switching between projects in a Project Group?


  6. 5 minutes ago, Brandon Staggs said:

    Everything I have used on my Lenovo CoPilot+ notebook runs seamlessly, including my own compiled Delphi applications

    Have you ever tried GDI+ Win32 apps compiled by Delphi?

    • Like 1

  7. From the Microsoft website (https://learn.microsoft.com/en-us/surface/surface-arm-faq😞  

    • Emulated apps run via the Prism emulation engine, which minimizes performance loss and ensures that most x86/x64 applications operate seamlessly on Arm64 systems. Users shouldn't notice any significant difference between native and emulated apps apart from potential performance variations.

    Can I run Windows programs that aren't in the Microsoft Store on my Windows 11 Arm-based device?

    Yes, non-Store Windows apps can be installed and run on Windows 11 Arm-based devices. Most applications run natively or through Prism emulation, providing smooth performance.

    • Like 1

  8. 4 hours ago, Brandon Staggs said:

    I have a Snapdragon Windows PC and it's definitely "for real this time."

    How are Delphi apps performing on your Snapdragon Windows PC? Is the Windows-on-ARM emulation layer slowing Delphi apps down?

    Does the Delphi IDE run on your Snapdragon Windows PC?

    • Like 1

  9. 14 minutes ago, Brian Evans said:

    ability to run x86 binaries

    The Windows-on-ARM emulation layer is used to run Delphi applications on a Surface Pro with Snapdragon. This emulation makes it possible to run x86/x64 programs on ARM processors, albeit with potential performance losses.

    • Sad 1
×