Jump to content

dummzeuch

Members
  • Content Count

    2636
  • Joined

  • Last visited

  • Days Won

    91

Everything posted by dummzeuch

  1. dummzeuch

    r3588 and Alexandria

    Care share your modifications, so I don't have to do them myself?
  2. dummzeuch

    r3588 and Alexandria

    Yes, I know. I downloaded Delphi 11 yesterday late in the evening and installed it. Then I spent about half an hour creating the GExperts project for it and adapting some include files, but never finished it. Today won't fare any better. Maybe on the weekend.
  3. dummzeuch

    Delphi 11: Text size too small!

    It's there all right. I must have been very tired yesterday evening.
  4. dummzeuch

    Delphi 11: Text size too small!

    In older IDEs, there used to be a simple slider in the status bar where you could adjust the font size. I couldn't find that in Delphi 11. Or was that some plug-in?
  5. For me the biggest headache in that scenario is e-mail. It's stored on a server and in a backup, but since nobody but me apparently ever bothers to delete or at least archive old stuff, every server crash that kills the email means restoring many gigabytes of email before new emails can be received. On my work PC, all I really need is the OS + the email client + Delphi and TortoiseSVN. The most work would be to install all necessary components in the IDE. That's mostly automated though, but there are always glitches. Everything else is on the server (and backed up) or is test data that can be easily replaced (usually data from the server copied locally for performance reasons).
  6. For a while I put Word/LibreOfficeWriter and Excel/LibreOfficeCalc documents in subversion, but since they are binary it's pretty pointless, because one cannot easily find what changed. I put some configuration files (linux) there and of course source code of all kinds, including third party sources (and use these via svn:external).
  7. dummzeuch

    Anybody changing FileVersion directly in dproj file?

    I think you overestimate the complexity of an automated build: Have a release configuration in the IDE Build from command line. That's it. You can always add more to the automation but the command line build is a good starting gpoint.
  8. dummzeuch

    FinTech anyone?

    I never heard that term either, but I'm not American. I heard of Fintech though, not sure what it means other than just another buzzword about making money with other people's money.
  9. dummzeuch

    RAD Studio 10.4.2 crashes upon exit

    Is this the plain IDE or do you use some plugins?
  10. dummzeuch

    How to use unit BufferedFileStream & FastCopy?

    Hm, but you are not @Quarks, so your reasons don't count in this context.
  11. dummzeuch

    How to use unit BufferedFileStream & FastCopy?

    Why not using the Windows API CopyFileEx? As far as I know it has no size limitation. It also allows a callback for showing the progress and possibly cancelling the copy. If you need an example, have a look at TFileSystem.CopyFileWithProgress in my dzlib. Or am I misunderstanding your requirements?
  12. dummzeuch

    How to use unit BufferedFileStream & FastCopy?

    Buffered file stream will get you no performance improvement in this case. It only has an advantage for reading and writing (many) small parts of a file, but you are using a buffer of 512 KBytes already.
  13. dummzeuch

    10.4.1+ Custom Managed Records usable?

    a := muldiv(b,c,d); Of course, this is a function, not a ternary operator, but ... a := b * c div d; ... is not really *one* operator tut two, but neither is ... a = b?c:d; ... so does it qualify?
  14. I just implemented some functionality using TCustomIniFile.ReadSubSections which depending on the type passed to it, either calls the TMemIniFile or the TRegistryIniFile method. Something like: procedure doSomething(_Ini: TCustomIniFile); var sl: TStringList; begin sl := TStringList.Create; try _Ini.ReadSubSections(sl) for i := 0 to sl.Count - 1 do begin doSomethingWith(sl[i]); end; finally FreeAndNil(sl) end; end; This works fine in Delphi 10.2 but not in Delphi 7 because TCustomIniFile.ReadSubSections didn't exist back then. I need that functionality for older Delphi versions, so I somehow must implement ReadSubSections there. Unfortunately the implementations differ greatly for TMemIniFile and TRegistryIniFile. I'd have to check which class is passed in and call the respective implementation. if _Ini is TMemIniFile then HandleMemIniFile(_Ini) else if _Ini is TRegistryIniFile then HandleRegistryIniFile(_Ini) else raise Exception.Create('Only TMemIniFile or TRegistryIniFile supported'); But this just feels very clunky. Is there any better way? (Just in case somebody wants to suggest them: Class helpers didn't exist in Delphi 7 either.)
  15. Yes, but how could they help here?
  16. Yes, but I would still have to use similar code as above to typecast to the correct class.
  17. (I must be CompilerVersion < 14 because the method was introduced in Delphi 2010.) Unfortunately subclassing TMemIniFile and TRegistryIniFile wouldn't allow me to pass TCustomIniFile.
  18. dummzeuch

    10.4.1+ Custom Managed Records usable?

    Actually that was how I understood the original question: But maybe I was wrong, happened before.
  19. dummzeuch

    What is this syntax?

    Actually, it might cause an enum to not have RTTI: "Enumerated constants with a specific value [...] do not have RTTI. (from http://docwiki.embarcadero.com/RADStudio/Sydney/en/Simple_Types_(Delphi)#Enumerated_Types_with_Explicitly_Assigned_Ordinality ) (I didn't check this.)
  20. dummzeuch

    10.4.1+ Custom Managed Records usable?

    Exactly. Changing working code just because it can now be written differently, is not a good reason in itself. I wouldn't refactor code only to now use inline variable declarations either. But if I have to refactor it for other reasons, I might consider it (same for custom managed records, but I'm not yet sure I trust the implementation).
  21. We could probably improve this with a try ... finally and exceptions. 😉 (I actually have some code that does this because a coworker complained loudly about the gotos I was originally using.) Let's create a new thread with worse "improvements" ("Verschlimmbesserung") for this code.
  22. dummzeuch

    10.4.1+ Custom Managed Records usable?

    Why should I? Existing code just works as it is and unless there is a good reason to change it, I won't touch it.
  23. dummzeuch

    What is this syntax?

    Note though that this kind of enums has only limited support in RTTI. btw: This has been available since Delphi 6, so you are rather late to the party. 😉
  24. My all time favorite: if SomeErrorCondition then Exception.Create('Errormessage goes here'); (raise is missing, just in case you didn't notice.) Or alternatively: raise exception('SomeErrorMessage'); (create is missing) Makes for a "nice" Access Violation in the exception handler. Both were in my own code, but the first one was also in some older RTL and JVCL and Indy code (all fixed now). I blogged about this a while ago. (OMG, back then we still hat Google+ !)
×