How can I load XML file into TListBox in Delphi 2009? I want to make it possible to click a button and the channel lists will be load on ListBox and end user will click on any of the channel and it will start playing on media player.
You can load the .xml file in some of the xml components for Delphi, like TXMLDocument. But it is SLOW, takes a LOT of memory and worst of all - have some strange behavior - after accessing a node you have to manually free it. Not to mention that you have to traverse trough nodes until you reach desired branch.
If you need a simple job - like taking channels name from xml, I would suggest to open it as a txt file (you can open it trough TStringList for example, and use Text property for direct access) and manually parse it (use PosEx, to incrementally search for node names, and then Copy to extract desired names)
I am about to start learning a new programming language, and have recently acquired Delphi for no real reason. I was wondering, does Delphi write its code in Pascal? If so, what can I do with Pascal? Anyone have any good resources for it? Both online websites/tutorials and books (maybe even Delphi specific). If it isn't the same, which language is used in Delphi? Is it its own language? I ask because I read somewhere it uses ascal, but I didn't know if it used Pascal to physically run, or if that is what the code is. Thanks guys.
I'm trying to develop a dll for my application and what is good is that i have the code in pascal developed on Borland Delphi 6 BUT the problem is there are some objects which i can't define them in c++ .
So i need help for this migration and if there is someone can help me what is the best solution and objects in c++ relatives to this objects in Pascal :
I have searched all over for a proper manual - alas! I need to produce a Rave Report from an SQL statement in Delphi7, something like
SELECT * FROM tblTransaction WHERE TransDate>=[Starting Date] And TransDate<=[End Date]
ORDER BY Category, TransDate; (TransDate and Category are fields in the table)
The report must look like an MS Access report GROUPED by Category, then all the Transactions in that group (Category) ordered by TransDate, followed by a sub-total for the group and, finally, an overall TOTAL for all the transactions. The transactions are invoices with such information as supplier, date paid, detail, etc.
The SQL must be passed to Rave Reports from Delphi, as must be the ConnectionString to the database.
There are sites advertising examples of Rave for sale but, they are not specific and I do not want to spend unless I know it's what I'm looking for.
Need a clarification in Delphi 7
I have two applications running simultaniously.
One will feed the next with trigger files.
Here i want the second application to pick the oldest file in the list of files available.
Please suggest me an idea with example...
First application is a report file generator, at the end of report generation it will create a trigger file with root path of those Report files. The second application will pick the trigger file and will Archive those report files to DB...
if i have ten trigger files present named 1.trg, 2.trg ... so on... The second application will pick the 1.trg and process it. After processing. it is not picking the 2.trg where as it starts picking 11.trg which the report gen was currently writing in. Where in i need the second application to pick 2.trg...
I want to send automatic mail from my Delphi application with attachment without invocation of any client tool like outlook. Actually My application runs as a windows service and every 5 minute generate some response files. I want those files to be mailed automatically. But how do I do that?
Im not in with Delhi but what i do is: create an EML-file, open a socket and send the stuff. Actually it is not so difficult to create a socket that follows the SMTP-protocol...
If you like i can give you some code to do that (or look at the RFC's describing the SMTP-protocol)