-
Content Count
83 -
Joined
-
Last visited
-
Days Won
3
Posts posted by Ondrej Kelle
-
-
-
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.
- 1
-
-
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.
- 1
-
25 minutes ago, rvk said:I don't think 'injecting code' is the best way to go.
SetWindowsHookEx is one of the ways of 'injecting code' on Windows.
Documentation: " SetWindowsHookEx can be used to inject a DLL into another process."
-
1 hour ago, David Hoyle said:Actually I disagree, sorry.
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. 🙂
-
25 minutes ago, David Hoyle said:unfortunately the code @Dave Nottage referred to does not work.
I'm not surprised - it's 10 years old. 😉
-
-
-
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.
-
23 minutes ago, dummzeuch said:But this requires somebody with authority to do the initial slapping.
In case of lack of authority, proceed with slapping until the desired level is achieved. 🙂
- 6
-
7 minutes ago, haentschman said:Hi all...
did you ever see when the stackoverflow thread was written?
The question was posted Dec 24 '15.
The quoted answer was posted 20 hours ago, deleted 2 hours later.
- 1
-
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
-
Couldn't reproduce here, Delphi 10.3 Update 1, Version 26.0.33219.4899 - seems to work as expected
-
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.
-
1 hour ago, Steve Maughan said:This is really helpful. Can I ask, what is the resource editor you're using in the screenshot?
Looks like Anders' Resource Editor which you can download from his website: http://melander.dk/download/
-
41 minutes ago, David Schwartz said:what options are there in Delphi for an atomic test-and-set or incr-and-return-value operation?
System.Atomic* routines (e.g. AtomicCmpExchange)
TInterlocked in SyncObjs
-
13 minutes ago, Lars Fosdal said:Just curious: Has anyone seen a valid use case for defined ordinal values in enumerations?
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.
-
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.
- 1
-
21 hours ago, Sherlock said: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.
- 1
- 2
-
30 minutes ago, Tommi Prami said:Thanks,
Can't see any difference but if I copy record and external method declarations from github, it compiles. weirdest thing ever 😄
Just a thought... Sounds like the units in your uses clause are listed in a different order so the type declarations resolve differently.
-
1 hour ago, Tommi Prami said:Thanks,
I see nothing wrong in that, but I just can't see why Compiler does not like it. It might be something trivial, but I just can't figure it out.
TMenuBarInfo = tagMENUBARINFO; // <- [dcc32 Error] : E2029 '=' expected but identifier 'TMenuBarInfo' found
Sorry, I've been vague. Here's the full code which works in Delphi XE, I hope it helps:
Cheers!
- 1
-
class designation question
in Algorithms, Data Structures and Class Design
Posted
Thanks! I think you're completely right and off-topic to the question. 🙂