-
Content Count
1200 -
Joined
-
Last visited
-
Days Won
16
Everything posted by FPiette
-
Anyone using MQTT protocol with ICS?
FPiette replied to Angus Robertson's topic in ICS - Internet Component Suite
Maybe a message on GitHub would reach more peoples? Or in https://en.delphipraxis.net/forum/29-network-cloud-and-web/ ? -
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.
-
Writing & Reading as a Console App?
FPiette replied to Steve Maughan's topic in RTL and Delphi Object Pascal
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. -
Writing & Reading as a Console App?
FPiette replied to Steve Maughan's topic in RTL and Delphi Object Pascal
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 ? -
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.
-
Writing a property sheet shell extension (IShellPropSheetExt)
FPiette replied to FPiette's topic in Windows API
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. -
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.
-
Writing a property sheet shell extension (IShellPropSheetExt)
FPiette replied to FPiette's topic in Windows API
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. -
Can the packages setup be updated for ICS in new versions?
FPiette replied to Geoffrey Smith's topic in ICS - Internet Component Suite
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 😉 -
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.
-
Can the packages setup be updated for ICS in new versions?
FPiette replied to Geoffrey Smith's topic in ICS - Internet Component Suite
Shouldn't this be done using conditional compilation in source code? -
Can the packages setup be updated for ICS in new versions?
FPiette replied to Geoffrey Smith's topic in ICS - Internet Component Suite
I don't grab what you mean. Can you give an example of customization? -
OK. And which version did you buy? Without active update subscription, you can download only what you bought.
-
Maybe you missed it, but the problem is solved:
- 22 replies
-
Can the packages setup be updated for ICS in new versions?
FPiette replied to Geoffrey Smith's topic in ICS - Internet Component Suite
Which component? -
Can the packages setup be updated for ICS in new versions?
FPiette replied to Geoffrey Smith's topic in ICS - Internet Component Suite
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). -
Can the packages setup be updated for ICS in new versions?
FPiette replied to Geoffrey Smith's topic in ICS - Internet Component Suite
Same problem for each of us. -
Can the packages setup be updated for ICS in new versions?
FPiette replied to Geoffrey Smith's topic in ICS - Internet Component Suite
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. -
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/
-
I have this document : http://wiki.overbyte.be/arch/IcsMidwareCodingStyle.pdf It partially answer your request.
-
Better way to maintain a list in a database table??
FPiette replied to Ian Branch's topic in General Help
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/ -
Better way to maintain a list in a database table??
FPiette replied to Ian Branch's topic in General Help
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... -
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.
-
Is asked ChatGPT: What is Internet Component Suite for Delphi?
FPiette posted a topic in ICS - Internet Component Suite
-
Is asked ChatGPT: What is Internet Component Suite for Delphi?
FPiette replied to FPiette's topic in ICS - Internet Component Suite
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.