Jump to content

Ondrej Kelle

Members
  • Content Count

    83
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ondrej Kelle

  1. Ondrej Kelle

    class designation question

    Thanks! I think you're completely right and off-topic to the question. πŸ™‚
  2. Ondrej Kelle

    class designation question

    The first is a class reference (metaclass), the second is a type declaration (class).
  3. Ondrej Kelle

    TWebModule response content truncated before return

    Simple assignment to Content should be sufficient: Response.Content := doc.XML.Text; This will both encode the incoming string value and set ContentLength automatically. (See TISAPIResponse.SetContent in Web.Win.IsapiHTTP.) In your case the encoded stream was longer than the original text, e.g. due to insertion of escape characters. By setting ContentLength explicitly you have effectively truncated the encoded stream.
  4. Ondrej Kelle

    [Macos, APFS, VmWare] Shrinking VM images

    Also see Sysinternals sdelete -z: -z Zero free space (good for virtual disk optimization).
  5. Ondrej Kelle

    Unit testing cross platform code

    DUnit for Delphi, fpcunit for FPC, one source code for the tests as they are largely compatible, you only need to conditionally compile with the right uses clause. There's an example of that in chakracore-delphi.
  6. Ondrej Kelle

    Add aΒ system-menu item to all applications?

    SetWindowsHookEx is one of the ways of 'injecting code' on Windows. Documentation: " SetWindowsHookEx can be used to inject a DLL into another process."
  7. Ondrej Kelle

    Resolve a uses clause unit path?

    I apologise, no flame intended πŸ™‚ Was that a reply to me? It's not terribly important - but do you disagree with the fact that the code was posted in 2009? πŸ™‚ Just curious. I wish you a nice Sunday. πŸ™‚
  8. Ondrej Kelle

    Resolve a uses clause unit path?

    I'm not surprised - it's 10 years old. πŸ˜‰
  9. Ondrej Kelle

    Resolve a uses clause unit path?

    Some pointers can also be found here.
  10. Ondrej Kelle

    his control requires version 4.70 or great of COMCTL32.DLL

    I would guess probably something from ComCtrls.
  11. Ondrej Kelle

    Dark mode Blue Balls tweaking

    In case the blue ball image is linked into one of Delphi's binaries as a resource it might be possible to use a resource editor to replace it with your own.
  12. Ondrej Kelle

    Jedi - Git => SVN?

    It should also be possible to use branches and commit, according to their article: Support for Subversion clients.
  13. Ondrej Kelle

    How do you deal with git conflict annotations added to DFM files

    In case of lack of authority, proceed with slapping until the desired level is achieved. πŸ™‚
  14. The question was posted Dec 24 '15. The quoted answer was posted 20 hours ago, deleted 2 hours later.
  15. Ondrej Kelle

    Project Configuration Manager

    If you chose the code-generating wizards route perhaps this might (still) be helpful: old article (web archive): OTA: Visual design of Wizards code: https://cc.embarcadero.com/Item/17106
  16. Ondrej Kelle

    Named pipe failure, multithreading and asynchronous I/O

    Couldn't reproduce here, Delphi 10.3 Update 1, Version 26.0.33219.4899 - seems to work as expected
  17. An easy way would be to create and use a data module, then you can put your Indy components on it and use the IDE designer to write your event handlers.
  18. Ondrej Kelle

    Right Process for Changing an Application's Icon?

    Looks like Anders' Resource Editor which you can download from his website: http://melander.dk/download/
  19. System.Atomic* routines (e.g. AtomicCmpExchange) TInterlocked in SyncObjs
  20. Not really when writing my own code, I try to avoid them if possible. Sometimes for interop with an API, e.g. when translating C headers where enums are already declared that way. Or when you need to support a binary format which uses some specific ordinal values, then it depends - you might still prefer to use an enum but avoid conversion.
  21. No reservations, I find it concise/elegant and prefer to use it whenever I can. My 2c. You might have to avoid enum types with explicitly assigned ordinal values, though.
  22. Ondrej Kelle

    Version Control System

    People have actually asked for blame as a feature, that's why I included it back then in delphisvn (before it became Version Insight). I find it useful myself to see who committed which lines and also when. This piece of metadata can be useful when trying to understand a code base and its evolution.
  23. Ondrej Kelle

    How to get position of Top-level TMenuItem of Main menu

    Just a thought... Sounds like the units in your uses clause are listed in a different order so the type declarations resolve differently.
  24. Ondrej Kelle

    How to get position of Top-level TMenuItem of Main menu

    Sorry, I've been vague. Here's the full code which works in Delphi XE, I hope it helps: GetWindowMenuItemRect example Cheers!
  25. Ondrej Kelle

    Measure Process Time

    On Windows, there's GetProcessTimes API if that's what you want...
Γ—