Jump to content

MarkShark

Members
  • Content Count

    85
  • Joined

  • Last visited

Everything posted by MarkShark

  1. Good tip! I have a number of old libraries like this that I keep using with newer Delphi versions. My solutions is to do something like: {$if CompilerVersion >= 23} {$DEFINE XE2PLUS} {$ifend} That way I don't have to keep changing it with new releases.
  2. MarkShark

    SynEdit preferred version?

    Thanks to everyone who responded to this! I'm new to git (and to contributing to open source projects) so I installed a bunch of stuff, cloned the SynEdit2 repository, made a branch (I think that's the correct thing), went to add the wordwrap fix I mentioned above... and found that pyscripter had already fixed it last December and I had totally missed it. Nice! I'm going to attempt a pull request on a very minor fix I have to try to get my feet wet on the process.
  3. MarkShark

    TStopwatch.Elapsed

    I always do Stopwatch := TStopwatch.StartNew; On a side note I wonder if the new managed records thing could make your original one work (which I would prefer.)
  4. MarkShark

    MMX supports Delphi 10.4 Sydney

    That's awesome. Thank you Uwe!
  5. MarkShark

    Revisiting TThreadedQueue and TMonitor

    Watching this with great interest! This level of knowledge is beyond me, but as a consumer of the Delphi library code it would be fantastic to hear that is has been fixed. What's the best way to "suggest" that Embarcadero incorporate any found fixes? Contacting Marco? Voting for a QC report? Something else? A big thanks to all contributors on this, it really is fascinating.
  6. MarkShark

    Tool to fix up uses clause unit namespaces?

    Uwe - thanks for the source for that! I'll be checking that out.
  7. MarkShark

    Tool to fix up uses clause unit namespaces?

    I use the MMX Code Explorer for that. The feature is a bit hidden and listed under "Group and Sort Uses". I think it only works on the current uses statement (e.g. you need to put the caret on the uses clause and hit the hotkey for it. It does work well as I've used it quite a bit when working with my older units.
  8. MarkShark

    isFileInUSe

    HFileRes should be a THandle instead of HFILE (which is a LongWord). In 64bit CreateFile returns a 64bit value and you are assigning it to a 32bit one. On a side note I just checked Delphi RIO and still no compiler hint for this type of thing... Seems like that would be useful. -Mark
×