-
Content Count
83 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Ondrej Kelle
-
class designation question
Ondrej Kelle replied to David Schwartz's topic in Algorithms, Data Structures and Class Design
Thanks! I think you're completely right and off-topic to the question. π -
class designation question
Ondrej Kelle replied to David Schwartz's topic in Algorithms, Data Structures and Class Design
The first is a class reference (metaclass), the second is a type declaration (class). -
TWebModule response content truncated before return
Ondrej Kelle replied to Mark Williams's topic in Network, Cloud and Web
Simple assignment to Content should be sufficient: Response.Content := doc.XML.Text; This will both encode the incoming string value and set ContentLength automatically. (See TISAPIResponse.SetContent in Web.Win.IsapiHTTP.) In your case the encoded stream was longer than the original text, e.g. due to insertion of escape characters. By setting ContentLength explicitly you have effectively truncated the encoded stream. -
Also see Sysinternals sdelete -z: -z Zero free space (good for virtual disk optimization).
-
DUnit for Delphi, fpcunit for FPC, one source code for the tests as they are largely compatible, you only need to conditionally compile with the right uses clause. There's an example of that in chakracore-delphi.
-
Add aΒ system-menu item to all applications?
Ondrej Kelle replied to PeterPanettone's topic in Windows API
SetWindowsHookEx is one of the ways of 'injecting code' on Windows. Documentation: " SetWindowsHookEx can be used to inject a DLL into another process." -
I apologise, no flame intended π Was that a reply to me? It's not terribly important - but do you disagree with the fact that the code was posted in 2009? π Just curious. I wish you a nice Sunday. π
-
I'm not surprised - it's 10 years old. π
-
Some pointers can also be found here.
-
his control requires version 4.70 or great of COMCTL32.DLL
Ondrej Kelle replied to sjordi's topic in FMX
I would guess probably something from ComCtrls.- 8 replies
-
- delphi
- rio 10.3.2
-
(and 1 more)
Tagged with:
-
In case the blue ball image is linked into one of Delphi's binaries as a resource it might be possible to use a resource editor to replace it with your own.
-
It should also be possible to use branches and commit, according to their article: Support for Subversion clients.
-
How do you deal with git conflict annotations added to DFM files
Ondrej Kelle replied to David Schwartz's topic in General Help
In case of lack of authority, proceed with slapping until the desired level is achieved. π -
Increasing registration count not possible without active maintenance support
Ondrej Kelle replied to Leif Uneus's topic in Delphi IDE and APIs
The question was posted Dec 24 '15. The quoted answer was posted 20 hours ago, deleted 2 hours later. -
Project Configuration Manager
Ondrej Kelle replied to Davide Visconti's topic in Delphi IDE and APIs
If you chose the code-generating wizards route perhaps this might (still) be helpful: old article (web archive): OTA: Visual design of Wizards code: https://cc.embarcadero.com/Item/17106 -
Named pipe failure, multithreading and asynchronous I/O
Ondrej Kelle replied to FPiette's topic in Windows API
Couldn't reproduce here, Delphi 10.3 Update 1, Version 26.0.33219.4899 - seems to work as expected -
use indy in a console application
Ondrej Kelle replied to bernhard_LA's topic in Algorithms, Data Structures and Class Design
An easy way would be to create and use a data module, then you can put your Indy components on it and use the IDE designer to write your event handlers. -
Right Process for Changing an Application's Icon?
Ondrej Kelle replied to Steve Maughan's topic in VCL
Looks like Anders' Resource Editor which you can download from his website: http://melander.dk/download/ -
Lockfree approach on a Single reader, Multiple Writer queue
Ondrej Kelle replied to kokoslolos's topic in Algorithms, Data Structures and Class Design
System.Atomic* routines (e.g. AtomicCmpExchange) TInterlocked in SyncObjs -
Delphi pitfalls: Enumerated types and for loops
Ondrej Kelle replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
Not really when writing my own code, I try to avoid them if possible. Sometimes for interop with an API, e.g. when translating C headers where enums are already declared that way. Or when you need to support a binary format which uses some specific ordinal values, then it depends - you might still prefer to use an enum but avoid conversion.- 39 replies
-
- pitfall
- enumerated type
-
(and 1 more)
Tagged with:
-
Any reservations on using const array[type] of?
Ondrej Kelle replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
No reservations, I find it concise/elegant and prefer to use it whenever I can. My 2c. You might have to avoid enum types with explicitly assigned ordinal values, though. -
version control system Version Control System
Ondrej Kelle replied to Soji's topic in Delphi IDE and APIs
People have actually asked for blame as a feature, that's why I included it back then in delphisvn (before it became Version Insight). I find it useful myself to see who committed which lines and also when. This piece of metadata can be useful when trying to understand a code base and its evolution.- 49 replies
-
- git
- subversion
-
(and 1 more)
Tagged with:
-
How to get position of Top-level TMenuItem of Main menu
Ondrej Kelle replied to Tommi Prami's topic in Windows API
Just a thought... Sounds like the units in your uses clause are listed in a different order so the type declarations resolve differently. -
How to get position of Top-level TMenuItem of Main menu
Ondrej Kelle replied to Tommi Prami's topic in Windows API
Sorry, I've been vague. Here's the full code which works in Delphi XE, I hope it helps: GetWindowMenuItemRect example Cheers! -
On Windows, there's GetProcessTimes API if that's what you want...