dormky
Members-
Content Count
111 -
Joined
-
Last visited
Everything posted by dormky
-
How can I cast a Pointer to any pointer type
dormky replied to dormky's topic in RTL and Delphi Object Pascal
NativeUInt(Pointer) doesn't work. "NativeUInt(myPointer)" doesn't give the same number as "PByte(myRecord)", despite "myPointer" being the same value as "@myRecord". Strangely, "PNativeUInt(myRecord)" isn't valid but "PByte(myRecord)" is, wtf ? -
Sorry for the delay. Here's how it ended up, using @Uwe Raabe's proposition of setting ClicksDisabled to True : uses Vcl.StdCtrls; type THelperCheckBox = class helper for TCheckBox procedure SetValue(const value: Boolean); end; implementation procedure THelperCheckBox.SetValue(const value: Boolean); begin ClicksDisabled := True; try Checked := value; finally ClicksDisabled := False; end; end; For now I've set it for checkboxes only, but will probably copy/extend it to other components or just TButtonControl. Maybe with runtime checks of the actual class of the instance the method is called on. Thanks everyone.
-
I have an old 2007 project that needs to be brought up to 10.3. However, I cannot compile the project with 10.3 as it seems it cannot recognize any installed libraries (include VCL itself). What do I need to do to migrate the project ?
-
Ah, by copying files into a new project I noticed that the search path had some absolute paths pointing to 2007 Delphi, preventing it from being used anywhere other then the original computer... Old projects I swear lol. Weird that Delphi didn't give any warnings and just said Vcl was not found. Thanks for the pointers to other things I hadn't considered though, that will be useful.
-
So we have this big client that insists on us providing a backup solution for our own program and database. I told management this is not an issue we should be taking care of (imagine if every software had its own complete backup management system ?) and that the client's IT should just add the relevant paths to their backups. Alas, it is what it is and the compromise seems to be us "advising" a backup solution... So what's a backup solution that would handle backuping the path to our software installation as well as a mysql database ? I have absolutely no knowledge of the market for this, I'm not a sysadmin. Thanks !
-
It totally is an incompetent IT service. I've told management that they should just backup the server itself, but apparently that's not sufficient. Mind-boggling stuff.
-
Well, there's the client's own IT service (do not ask me why the IT service can't perform this simply backup, it's beyond me) that can access everything. Apparently we need to tell them what to install and how to use it. I'm honestly going to leave this request unanswered and hope people forget about it.
-
Yes, the DB is a on a server and used from multiple clients. I'd like to tell them to just use mysqlbackup, but there's an insistence on having everything in one tool... And if we use a tool where we can add a script to run the mysqlbackup ourselves, then we start taking responsibility for things which management doesn't want either --'
-
Hello, Could someone share a .delphilsp.json (for the DelphiLSP extension) file ? I can't generate one since I have 10.3 installed (superior versions won't start if another one is installed) and I can't migrate to 11 yet. I just need to look at the file structure so I can reproduce it for our own projects and finally stop using RAD Studio for most of the development. Thanks !
-
Thank you very much @Stano!
-
Hey @laes , did you had up publishing this work ? I'd love to have it, working without syntax highlighting is hell.