Lajos Juhász
Members-
Content Count
796 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Lajos Juhász
-
Delphi beta testing a "premium" privilege?
Lajos Juhász replied to Brandon Staggs's topic in Tips / Blogs / Tutorials / Videos
No, there is no reason to publish it anymore. -
I was able to register roughly 8 hours ago.
-
Delphi beta testing a "premium" privilege?
Lajos Juhász replied to Brandon Staggs's topic in Tips / Blogs / Tutorials / Videos
Why not? It's a priviledge to get access to some kind of "road map information". Their task is also to help to complete the version. This it's premium service of the customers towards the company! -
Copy nodes from a TTreeView with Delphi 4!
Lajos Juhász replied to Magno's topic in RTL and Delphi Object Pascal
You should place the nodes after a copy in a list, during the copy operation you have to skip those nodes. -
In order to calculate the required space you can use windows API DrawTextEx with format option DT_CALCRECT.
-
Delphi 11.1 + patches - No debug source / breakpoints?
Lajos Juhász replied to Lars Fosdal's topic in Delphi IDE and APIs
I don't know please tell us. I have had a situation when I was unable to debug a package with one exe. Changed the application that is used for debugging (host application) then the break point worked every time. Next week I was able to debug with both applications. -
You will have to wait for a future version of the Delphi. Maybe the new IDE will resolve this issue (or an improved LSP server).
-
you have a local variable fdc. Try self.fdc.Connected:= True;
-
This is an excellent suggestion. I doubt it is a must in Europe, I still receive sensitive information for other people in my e-mail account.
-
you should double check the path of the file the package tries to load. If the name of the dll is same for 32 and 64 bits there is always a possibility that windows first locates the 32 bit version.
-
Send a file from a Delphi VCL program using WhatsApp Cloud API
Lajos Juhász replied to lior I's topic in Network, Cloud and Web
You have to replace /local/path/file.jpg with your pdf file and type=application/pdf. -
Sweet 16: Delphi/Object Pascal
Lajos Juhász replied to DJof SD's topic in Tips / Blogs / Tutorials / Videos
I wrote that in context that Asm has more than twice the rating of Delphi. I simply cannot believe that's true. -
Sweet 16: Delphi/Object Pascal
Lajos Juhász replied to DJof SD's topic in Tips / Blogs / Tutorials / Videos
For me Assembly language makes no sense. I wonder in 2022 who is still coding using asm (I doubt it's used widely in windows applications). -
If you are looking for the Registered Prodducts portal you can find it at https://my.embarcadero.com.
-
System.Generics.Collections.TList.BinarySearch if there are duplicates
Lajos Juhász replied to dummzeuch's topic in RTL and Delphi Object Pascal
My point was with that Wikipedia link that modified algorithms have their names. Like in the link the variation to find the elemest with lowest index is called binary_search_leftmost and not binary_search. That's true, but most developers expect that if an implementation reference to an algorithm it will implement that algorithm and not something else. That was the whole point to name algorithms in matemathics and computer science. That no matter from where you learned an algorithm you know how it works. -
System.Generics.Collections.TList.BinarySearch if there are duplicates
Lajos Juhász replied to dummzeuch's topic in RTL and Delphi Object Pascal
This is the definition of the binary search: https://en.wikipedia.org/wiki/Binary_search_algorithm "The procedure may return any index whose element is equal to the target value, even if there are duplicate elements in the array. For example, if the array to be searched was {\displaystyle [1,2,3,4,4,5,6,7]}{\displaystyle [1,2,3,4,4,5,6,7]} and the target was {\displaystyle 4}4, then it would be correct for the algorithm to either return the 4th (index 3) or 5th (index 4) element. The regular procedure would return the 4th element (index 3) in this case. It does not always return the first duplicate (consider {\displaystyle [1,2,4,4,4,5,6,7]}{\displaystyle [1,2,4,4,4,5,6,7]} which still returns the 4th element). " -
System.Generics.Collections.TList.BinarySearch if there are duplicates
Lajos Juhász replied to dummzeuch's topic in RTL and Delphi Object Pascal
I doubt, this is by definition how Binary search works. To get the lowest index you just to iterate from the matched item and find the lowest index. -
It's the same as you Embarcadero account.
-
Clean cache memory after generete fast report
Lajos Juhász replied to Zazhir's topic in RTL and Delphi Object Pascal
It's hard to verify code this large. One thing you're for every step create a query: gisShapeTypePolygon: begin qryUID := TADOQuery.create(self); This is not going to be a definite leak as it has self (most probably the form as the owner). The query will remain open until the owner is destroyed. -
Can anyone check their Hash against mine, please? certUtil -hashfile designide280.bpl SHA256 (Delphi 11)
Lajos Juhász replied to Al T's topic in Delphi IDE and APIs
That's not what I have Size: 1.80 MB (1,894,304 bytes) and my coy was signed by Idera, Inc. -
Possible changes to string/char handling in Delphi 11(.2)?
Lajos Juhász replied to omnibrain's topic in General Help
Yeah, and breaks FireDAC as it converts from UTF-16 using the language for non-unicode programs instead of using conversion from client locale to server locale. -
Possible changes to string/char handling in Delphi 11(.2)?
Lajos Juhász replied to omnibrain's topic in General Help
This is true for strings. However in the example it's used to assign the value to ansistring: var MyAnsiString: AnsiString; AnsiString is not a unicode string thus there is no chr(11200) most probably the code page of the ansistring will have no conversation for that unicode code point thus will be converted to ? -
At least I won this bet. You should always post the parent class as don't everyone will have the complete source. By openning the System.Classes.pas it's clear what to do: procedure TCustomMemoryStream.SetPointer(Ptr: Pointer; const Size: NativeInt); change the method signature to match.
-
You should at least provide a compiler error message. From here we don't know which class it's inherited from. I don't like to gamble but will make an exception my guess is that you should change the parameters of the method to match the signature from the parent class?
-
Attach to Process along with Stepping through Code
Lajos Juhász replied to PeaShooter_OMO's topic in General Help
Delphi 11 can be tough on debugging. I also have problem to debug a code in a package. Sometimes I can place a break point and works as expected sometimes I have to use ShowMessages to debug. Build all can help (but not always).