-
Content Count
2839 -
Joined
-
Last visited
-
Days Won
168
Everything posted by Uwe Raabe
-
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.
-
You can even link the database into the exe as a resource and write it to disk if it doesn't exist.
-
fgxnative FGX Native - crossplatform mobile native development
Uwe Raabe replied to Yaroslav Brovin's topic in Delphi Third-Party
How much of paid work can you put aside to write it yourself? -
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.
-
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.
-
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.
-
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.
-
Is it possible to compile with just a .dcp? instead of DCUs or *.pas?
Uwe Raabe replied to Joe Sansalone's topic in General Help
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 -
This is expected and even documented (see Windows7 item 1):
-
Is it possible to compile with just a .dcp? instead of DCUs or *.pas?
Uwe Raabe replied to Joe Sansalone's topic in General Help
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. -
Is it possible to compile with just a .dcp? instead of DCUs or *.pas?
Uwe Raabe replied to Joe Sansalone's topic in General Help
Only when you compile with packages. -
How can I link (using LiveBindings) a TDataset on a TDatamodule and a TListView on a TForm in Delphi?
Uwe Raabe replied to RP286's topic in FMX
Make sure to add the unit containing the TDataModule to the (at least the implementation) uses clause of your form unit. -
Indeed, they broke it. I voted for you QP report. 👍
-
ModelMaker IDE Integration Expert for Delphi 10.4
Uwe Raabe replied to Ilde's topic in MMX Code Explorer
Seems you didn't look close enough: ModelMaker IDE Integration Expert Mind the note: -
I do! I actually blogged about it: Do you know Build Groups? There you can find instructions to solve your problem.
-
Any way to get RTTI for non-zero-based enumerated types?
Uwe Raabe replied to PiedSoftware's topic in RTL and Delphi Object Pascal
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. -
Firemonkey RESTRequest.Execute error on Windows but not OSX
Uwe Raabe replied to TrevorS's topic in Network, Cloud and Web
Which Delphi version? -
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.
-
File a QP report.
-
The menu entry has been moved to View - Editor.
-
You are working too much...
-
You simply cannot. If that were possible, the NTFS handling wouldn't have to be implemented in the first place.
-
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.
-
Finally: Announcing the Availability of RAD Studio 11.1 Alexandria
-
It depends on whether the drive is formatted as NTFS or FAT32. See https://docs.microsoft.com/en-us/windows/win32/sysinfo/file-times