Jump to content

David Heffernan

  • Content Count

  • Joined

  • Last visited

  • Days Won


David Heffernan last won the day on January 8

David Heffernan had the most liked content!

Community Reputation

448 Excellent


Technical Information

  • Delphi-Version
    Delphi XE7

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. David Heffernan

    In-App Clipboard

    If lots of people tell you that they don't fully understand your question, I respectfully suggest that you clarify what you are asking. It's easy for us all to write things that we think are clear but find that others don't fully understand. My guess is that you want to stop your program putting anything onto the Windows clipboard. Exactly how to do that depends very heavily on what controls your program uses.
  2. David Heffernan

    Memory leak in UnicodeString to string conversion

    Then you'll have to debug this yourself.
  3. David Heffernan

    Memory leak in UnicodeString to string conversion

    If you want to solve a problem, the first step is to understand it fully. Guesswork is unlikely to be successful. If you want help from others, help them to be able to reproduce the issue.
  4. David Heffernan

    Memory leak in UnicodeString to string conversion

    That reproduction is still required
  5. David Heffernan

    SHOpenFolderAndSelectItems 64-bit

    GetLastError is bad advice. COM doesn't report errors that way. If you would just show a complete, minimal example, it would be easy to help.
  6. David Heffernan

    SHOpenFolderAndSelectItems 64-bit

    If you have 32 bit code that works then that same code will work in 64 bit. We can't see your code.
  7. David Heffernan

    Writing DLL functions unit

    Automatic header convertors tend not to be very effective in my experience. Don't expect to be able to get a working import unit without human intervention.
  8. David Heffernan

    Kill a thread ... dead

    You can't kill it reliably and robustly. You can kill it, but expect consequences in your process.
  9. David Heffernan

    Kill a thread ... dead

    TerminateThread does the job. But do expect your process to fail as a result.
  10. David Heffernan

    Writing DLL functions unit

    If you have a demo program written in C or C++ then it is easy enough to translate to Delphi. But you'll want to learn some basic C or C++ in order to do so.
  11. David Heffernan

    Kill a thread ... dead

    You can't do what you ask. You need the isolation offered by processes in order to robustly kill something. You can't kill threads safely. All those other topics that you found that said the same are still a cue.
  12. You don't have time not to read
  13. Any data structure that encodes depth in a static name is surely the wrong solution. Have you read any books on data structures?
  14. What you really want is to separate the iteration over the data structure from the action that you perform on each item. Otherwise you end up with massive duplication of code. Also, this data structure seems pretty unlikely to be the right way to represent any data structure I can imagine.
  15. David Heffernan

    Overload methods or use unique names?

    How do you know that?