Jump to content

FPiette

Members
  • Content Count

    1200
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by FPiette

  1. FPiette

    Anyone using MQTT protocol with ICS?

    Maybe a message on GitHub would reach more peoples? Or in https://en.delphipraxis.net/forum/29-network-cloud-and-web/ ?
  2. FPiette

    One place to rule them all???

    In small demo applications, I use a TDataModule with component dropped on it. For real world large application, I use a simple unit have the code that encapsulate database access and database components are created at runtime. The unit offers classes that give access to the data stored in the database in an abstracted way. More code but much better program if correctly designed.
  3. FPiette

    Writing & Reading as a Console App?

    Classic Pascal I/O is probably not the most efficient. I would use direct WinAPI call (GetStdHandle, ReadFile, WriteFile). Using that API, you can easily make it non blocking (using I/O Completion Ports and/or multi threading). To organize your software, you should probably create an abstract class offering the services you need to communicate and then make one or more implementation using various I/O mechanisms.
  4. FPiette

    Writing & Reading as a Console App?

    I read in UCI specification: "the engine must always be able to process input from stdin, even while thinking.". Are you sure it is the case with your engine ?
  5. Hello, I'm trying to write a shell property sheet extension. The DLL with the COM object is not an issue for me since I already done that kind of work with my context menu extension (That's easy with Delphi). But for a property sheet extension, the COM object must implement IShellPropSheetExt. In that interface AddPage method must create the UI. There are many C++ examples on the web but I did not found any Delphi example. The C++ examples all use the old Windows dialog box feature. I don't want to use a windows dialog box but a Delphi form. I have no idea how to do that and search for some Delphi example or tutorial (Already done extensive Google searches without success). Any help will be appreciated! Thanks.
  6. That's what I have done and it works. The trick is to use an empty template and then from WM_INITDIALOG create a parented Delphi VCL form.
  7. FPiette

    Memory Leak when loading/unloading Delphi DLL

    You should probably enter a bug report at https://quality.embarcadero.com. Don't forget to attach your MSVC test program (Entire solution) and the Delphi DLL complete project. with a good report, chances are that it is tested quickly. Once the report is created, provide the link here.
  8. A Delphi VCL form is a standard window. It is probably possible to overload a dialogbox control using a parented Delphi form. That's what I'm trying to do to begin.
  9. Maybe because even if you write a note in the readme file, the user keep asking for a package with his specific version number ? Or just because they always have done so 😉
  10. FPiette

    Project options. Version info. Language

    That is related to InfoVersion that can be displayed by Windows when you right-click on a file and select properties. Windows tries to display the InfoVersion in the current language. If it doesn't exists (You may create InforVersion in different language), then it will display the default one.
  11. Shouldn't this be done using conditional compilation in source code?
  12. I don't grab what you mean. Can you give an example of customization?
  13. FPiette

    Current subscription required to download ?

    OK. And which version did you buy? Without active update subscription, you can download only what you bought.
  14. FPiette

    New Installation of Rad Studio 10.2 (Tokyo)

    Maybe you missed it, but the problem is solved:
  15. That would be really cool! I suggest using JSON because it is widely used nowadays and ICS contains a JSON builder/parser (OverbyteIcsSuperObject.pas taken from https://github.com/hgourvest/superobject).
  16. I create a lot of components using ICS and I never had this problem. I always add ICS source code to whatever component/application I create and never use run time packages. And by the way, ICS exist for the last 27 years and no one ever asked to change package naming. This being said, I'm not against it. It is just that I have better use of my spare time 😉 Try to convince Angus which does almost all changes for several years now. I'm sure he read this.
  17. FPiette

    Recomnended Email and Webserver Components

    ICS (Internet Component Suite) will do everything you ask. ICS is freeware with full source code. If you need help for using ICS, there is a dedicated forum on this website : https://en.delphipraxis.net/forum/37-ics-internet-component-suite/
  18. FPiette

    Need a "Delphi programming guideline"

    I have this document : http://wiki.overbyte.be/arch/IcsMidwareCodingStyle.pdf It partially answer your request.
  19. FPiette

    Better way to maintain a list in a database table??

    I forgot to say there is a standard for log file: SysLog. And there are provision to send the lines (Events) to a SysLog server using the Syslog protocol (RFC5424). I even wrote a pair of ICS components for that purpose: TSysLogServer and TSysLogClient. Those component allows to have a centralized, remote management system for the log. There are two corresponding demos in ICS. Look at the source code because documentation is almost non existent. Ask for your question in https://en.delphipraxis.net/forum/37-ics-internet-component-suite/
  20. FPiette

    Better way to maintain a list in a database table??

    Depending on what you need to do with the log (For example searching), you may simply use a text file and append the line at the end of the file. That is how most log files are built. If you are running on Windows, you may also use the Windows Event Log feature for which there is an API. And of course using a database is also an option. How to select between those solution and probably other depends on your use case that you don't describe at all...
  21. FPiette

    DNS Query & Lookup Synced

    If you are using ICS within a worker thread, you have to create a message pump. See the sample applications delivered with ICS there are several showing how to use a message pump which is not Application.ProcessMessages.
  22. You have to tell it that the answer is wrong and why it is wrong, not ask the same question. Each time you say it is wrong, you get a new answer which finally is a correct answer, at least when I asked a program using ICS.
×