Jump to content

Uwe Raabe

Members
  • Content Count

    2839
  • Joined

  • Last visited

  • Days Won

    168

Everything posted by Uwe Raabe

  1. Uwe Raabe

    DunitX run code after all tests have run

    Wouldn't adding a derived logger with that implementation be a more straight forward approach? Otherwise any registered logger derived from TDUnitXNullLogger would trigger that print out.
  2. You can even link the database into the exe as a resource and write it to disk if it doesn't exist.
  3. How much of paid work can you put aside to write it yourself?
  4. Uwe Raabe

    adding license

    There is a German blog post describing the whole process: Offline Installation und Aktivierung von Delphi, C++Builder und RAD Studio Perhaps you will get the points with a translation to English.
  5. Uwe Raabe

    difference .optset and .dproj file

    Option sets are fine when the same settings are to be applied to different projects. For a standalone project anything possible with option sets is also possible with build configurations.
  6. Uwe Raabe

    Delphi Version in profile

    Why? The other updates from previous versions (like 10.4.2, 10.3.3 or 10.2.3) are not selectable either. The list contains major versions only.
  7. Uwe Raabe

    difference .optset and .dproj file

    Are you able to achieve the desired results with separate build configurations? I'm sorry, but I still don't understand what your actual problem is.
  8. I don't know, but having packages besides pas and/or dcu files can be necessary (or just convenient) when compiling with packages. Especially when libraries are not provided with all source files (not sure about this one), you need the bpl/dcp files. You can find more information about that in this blog post: Appercept’s New AWS SDK For Delphi, Available With RAD Studio And Delphi Enterprise and Architect
  9. Uwe Raabe

    opendialog.initaldir

    This is expected and even documented (see Windows7 item 1):
  10. No. Probably you even cannot if these packages are compiled as runtime-only. In fact you will rarely have a need to compile your application with any designtime package unless the author missed to separate the designtime part from the runtime part. Note, that you have to deploy all directly and indirectly used runtime packages with your application if you compile it with runtime packages. To better answer your question: The DCP file for a BPL package is what you reference in the requires section of a package project file. It allows the using package to see all the units inside the package and f.i. link to the contained routines. The DCP itself also contains the name of the BPL file - usually with the LIBSUFFIX. The difference of a unit contained in a DCP file and a DCU file is that the DCU is linked into the compiled package or application, while the DCP provides the entry points to the BPL.
  11. Only when you compile with packages.
  12. Make sure to add the unit containing the TDataModule to the (at least the implementation) uses clause of your form unit.
  13. Uwe Raabe

    Project Build Groups

    Indeed, they broke it. I voted for you QP report. 👍
  14. Seems you didn't look close enough: ModelMaker IDE Integration Expert Mind the note:
  15. Uwe Raabe

    Project Build Groups

    I do! I actually blogged about it: Do you know Build Groups? There you can find instructions to solve your problem.
  16. My approach to these types of problems is to add a record helper for the enumeration that handles the conversion from and to Integer. type TDDArrangementId = (daOutstanding, daWeeklyGap, daAmount, daGapAmount); TDDArrangementIdHelper = record helper for TDDArrangementId private function GetAsInteger: Integer; procedure SetAsInteger(const Value: Integer); public property AsInteger: Integer read GetAsInteger write SetAsInteger; end; function TDDArrangementIdHelper.GetAsInteger: Integer; begin Result := Ord(Succ(Self)); end; procedure TDDArrangementIdHelper.SetAsInteger(const Value: Integer); begin Self := TDDArrangementId(Pred(Value)); end; The usage would then look like this: var myVar: TDDArrangementId; begin myVar.AsInteger := 1; Assert(myVar = daOutstanding); Inc(myVar); Assert(myVar = daWeeklyGap); Assert(myVar.AsInteger = 2); end.
  17. Uwe Raabe

    New encodings in editor?

    Well, it does. Binary is just - binary, whatever encoding was inside that binary is preserved. All text formats are stored in the encoding you select.
  18. Uwe Raabe

    Lost Code Format Menu option....

    File a QP report.
  19. Uwe Raabe

    Lost Code Format Menu option....

    The menu entry has been moved to View - Editor.
  20. Uwe Raabe

    Windows Dayligthsaving problem

    You are working too much...
  21. Uwe Raabe

    Windows Dayligthsaving problem

    You simply cannot. If that were possible, the NTFS handling wouldn't have to be implemented in the first place.
  22. Uwe Raabe

    New encodings in editor?

    Binary shows the file content as hex values and you can even edit it. Dropping f.i. a dcu file into the editor makes it pretty clear.
  23. Finally: Announcing the Availability of RAD Studio 11.1 Alexandria
  24. Uwe Raabe

    Windows Dayligthsaving problem

    It depends on whether the drive is formatted as NTFS or FAT32. See https://docs.microsoft.com/en-us/windows/win32/sysinfo/file-times
×