Jump to content

David Heffernan

  • Content Count

  • Joined

  • Last visited

  • Days Won


David Heffernan last won the day on July 25

David Heffernan had the most liked content!

Community Reputation

1367 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

    How to get the actual UTC time??

    You are concentrating on the time zone, but that's not your issue at all. When you get time from somewhere, you will be able to convert to UTC because you will know the time zone associated with the time. Your problem seems to be that you want to use an authorative time source. You should do research on that rather than worrying about time zone conversion.
  2. David Heffernan

    How to get the actual UTC time??

    What source do you want to use for the time, given that you've ruled out the local computer?
  3. "I need to have XXX translated to YYY" seems a little abrupt to me.
  4. What pay rate are you offering?
  5. David Heffernan

    Floating point arithmetics

    Log the floating point control word and see if it is the same in the two programs.
  6. David Heffernan

    gridlines in listboxes

    Use a list view. Part of problem solving is exploring the problem space and finding the best solution, given the pros and cons of all possible options. Deciding on the solution first and then trying to force it to work is not the way to solve problems.
  7. Nothing fundamentally wrong with your option 1, so long as that is the single place where those string literals are written. The array does have the useful benefit of leading to helpful compiler error when enums extended, as discussed. But yeah, none of these options is especially terrible. I'd actually rate option 2 as the worst.
  8. What's your definition of magic string?
  9. Speed isn't the issue. The mistake that you make again and again. Maintainability is the only concern here.
  10. So, the answer is a definitive no. Yeah, you are right, I just assumed that typed constants would be placed in read only memory, as they are in other tool chains. Oh well.
  11. Aren't they placed in read only memory?
  12. Attribute syntax demands true constants
  13. David Heffernan

    Convert Double to Real

    Given this definition type Real = Double; I'd say you don't have much to fear. Of course, this code doesn't compile.
  14. David Heffernan

    TListView filled by Thread = Freeze

    Why do this in a thread? Seems like much complexity for no possible gain.
  15. David Heffernan

    AllocHwnd + TTimer = lag?

    It's not going to be sent many messages. Can you reproduce the behaviour in a cut down program?