Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/26/21 in all areas

  1. Why? The C code clearly names the parameter "num_elements", so it stands to reason that it expects an "element count", not a "byte count". A dynamic array is already a pointer, so you don't need to index into the array, PInteger(data) will suffice.
  2. Fr0sT.Brutal

    Pos

    OTOH, some old-school C functions are another edge of insanity. itoa? strstr?? And the absolute winner - printf, fprintf, sprintf, snprintf, printf_s, fprintf_s, sprintf_s, snprintf_s, _sprintf_l, swprintf, _swprintf_l, __swprintf_l, sprintf_s, _sprintf_s_l, swprintf_s, _swprintf_s_l, _sprintf_p, _sprintf_p_l, _swprintf_p, _swprintf_p_l, vsprintf, _vsprintf_l, vswprintf, _vswprintf_l, __vswprintf_l, vsprintf_s, _vsprintf_s_l, vswprintf_s, _vswprintf_s_l, _vsprintf_p, _vsprintf_p_l, _vswprintf_p, _vswprintf_p_l, vsnprintf, _vsnprintf, _vsnprintf_l, _vsnwprintf, _vsnwprintf_l, vsnprintf_s, _vsnprintf_s, _vsnprintf_s_l, _vsnwprintf_s, _vsnwprintf_s_l, WTFPRINTF!!!
  3. f.m

    Choose a Folder dialog

    Perhaps SelectDirectory() from FMX.Dialogs could be beneficial. It is implemented for Windows and macOS platforms. It is not implemented for Android nor iOS. var LDirectory : String; if SelectDirectory('Test' {Title}, '' {Root}, LDirectory {out}) then begin // selected.. ShowMessage(LDirectory); end;
  4. Anders Melander

    Documentation creation tool

    A guess :
  5. wuwuxin

    Delphi books

    I rate myself as an "intermediate-level" Delphi programmer (as compared to the experts I found in this forum; I also use C/C++, .NET/C#/F#, FORTRAN). The following is the list of Dephi books that I've collected over the years. These are all great books by great writers - I'd like to thank them all for their books accompanying my Delphi journey over the years. For Learners: Inside Delphi 2006 (Ivan Hlandi) - the first Delphi book I read, by which I learned Delphi. I found this book very good for picking up Delphi. It covers not only Delphi but C++ Builder (for cross referencing Delphi features). Object Pascal Handbook (Marco Cantu, 2021) - classic, and continuously updated, with the latest one being for Sydney 10.4.2. Delphi XE2 Foundations (Chris Rolliston, 2012) - a well written book covering the Delphi language and other aspects. Comprehensive: Mastering Delphi 7 (Marco Cantu, 1996) - classic of the classics. Old but still relevant. Of all of Marco's books, I think his "Master Delphi XXX" series are really well written, impeccable text-book style. Expert Delphi (Pawel Glowacki, 2017) - another good Delphi book. Delphi Cookbook (Daniele Teti, 2018) - cookbook style, and good as a desktop reference to check out the tips occasionally. Delphi GUI Programming with FireMoney (Andrea Magni, 2021) - on the GUI programming using FMX, haven't finish reading it. Seems a comprehensive one. Delphi in a Nutshell (Ray Lischner, 2000) - my favorite book. Very well written, concise, and no non-sense. I like the "nutshell" style. I really hope Oreilly could update this book to the recent Delphi editions. For COM/ActiveX developing in Delphi: Delphi COM Programming (Eric Harmon, 2000) - the classic for Delphi COM programming. Oldie but goodie. A must-have if you are still doing COM programming. For Delphi Component Development: Delphi Component Design (Danny Thorpe, 1996) - the classic for component developers. Oldie but goodie. The author is Danny Thorpe after all. Even if you don't read it, you can save the book for the old times' sake. A nostalgic item to keep. Developing Custom Delphi 3 Components (Ray Konopka, 1997). Old, but still relevant. Well-written. For Database: Delphi in Depth - Client Dataset (Cary Jensen, 2014) - Not sure ClientDataSet is still a good option nowadays. But the book provides comprehensive coverage on ClientDataSet and its under-the-hood. Delphi in Depth - FireDAC (Cary Jensen, 2015) - a must-have if you want to learn FireDAC systematically. Introducing Delphi ORM (John Kouraklis, 2019) - An interesting little book about ORM, with a focus on TMS Aurelius. Enterprise Delphi Database with mORMot (Erick Engelke, 2016) - the only book on mORMot (except mORMot's own manual). Neither well-written, nor carefully proofread. It can be useful before driving you lunatic with the various typos, typesetting errors, or out-of-no-where examples. Still appreciate the book for being the only mORMot book, though. Multi-threading/Parallel Programming Parallel Programming with OmniTheadLibrary (Primoz Gabrijelcic, 2019) - A systematic book on the wonderful OmniThreadLibrary. Delphi Event-based and Asynchronously Programming (Dalija Prasnikar, 2020) - a very well written book on the subject. Design Patterns Hands on Design Patterns with Delphi (Primoz Gabrijelcic, 2019) - A very nice book of implementing various design patterns in Delphi. Coding in Delphi, More Coding in Delphi, Dependency Injection in Delphi (Nick Hodges, 2015) - the three books by Nick Hodges on implementing design patterns in Delphi. Primarily about the Spring4D. The books have a very enthusiastic writing style, together with a lot of filler jokes (not my style but I can appreciate Nick's enthusiasm trying to make things lighter and fun). MVVM in Delphi (John Kouralkis, 2016) - a book on implementing MVVM in Delphi. The first couple of chapters are quite academic but interesting. Delphi Performance/Memory Management/Algorithms Delphi High Performance (Primoz Gabrijelcic, 2018) - a fairly unique book on writing performant Delphi code. Delphi Memory Management (Dalija Prasnikar, 2018) - a very interesting book, well written too. Delphi Algorithms and Data Structures (Julian Bucknall, 2001) - A unique book on algorithms and data structures in Delphi language.
  6. Fr0sT.Brutal

    Documentation creation tool

    IIRC Help'n'doc are constantly PR-ing themselves here in "3rd party" section though they even don't have native Pascal parser.
  7. David Champion

    Documentation creation tool

    If you mean the .chm file probably Doc-o-matic.
  8. Dalija Prasnikar

    Pos

    Be happy that you are not Cocoa (Objective-C) developer https://github.com/Quotation/LongestCocoa
  9. Lars Fosdal

    LSP Code Insight not working

    That seems to cover the subject quite aptly.
  10. We are glad to announce that the 4.84 StyleControls VCL has just been released! http://www.almdev.com StyleControls VCL is a powerful, stable package of components, which uses Classic drawing, system Themes, GDI+ and VCL Styles. This package contains the unique solutions to extend standard VCL controls and also has many unique, advanced controls to create applications with UWP / Fluent UI design.
  11. wuwuxin

    Pos

    By the way -I bought your new book, and found it very well written. The writing style is probably the best (or one of the best) of all the Delphi technical writers whose book I've read. Last time I found such a good technical writer was Delphi in a Nutshell by Ray Lischner . I look forward to more of your books - or maybe you might want to update the Memory Management book considering now Delphi has a uniform memory manager?
  12. David Heffernan

    Pos

    ofc, the naming of TrimRight is a bit of a slap in the face for Arabic speakers and other RTL languages!!! Should really be TrimEnd and TrimBeginning or something like that...
  13. Wil van Antwerpen

    Choose a Folder dialog

    Hi, I'm basically using the following: http://www.fmxexpress.com/select-directory-dialogs-in-delphi-xe8-firemonkey-on-windows-and-osx/ Just a little tweaked. -- Wil
  14. You set the ColorMenu.Style to msOwnerDraw but then you don't implement the OnDrawItem and OnMeasureItem. So your menu items have a width of 0px and a height of 16px. And nothing is painted anyway because OnDrawItem is not assign. The "example form" creates its own style painter TJvXPColorMenuItemPainter and assigns it to ColorMenu.ItemPainter. So this is not a bug but a handling error. procedure TEditorMainForm.FormCreate(Sender: TObject); ... begin ... ColorMenu.ItemPainter := TJvXPColorMenuItemPainter.Create(Self); BackgroundMenu.ItemPainter := TJvXPColorMenuItemPainter.Create(Self);
  15. Gabriel_Cogima

    XCode 12 compile error

    Hi Guys ! So now i can build with Xcode 12 and for IOS 14 ! So the solution for me is : In project --> options --> version information --> CFBundleName, put : $(ModuleName) Now i can build my project for the AppStore (Thanks weabow !!!!!) Gabriel
×