What are major incentives to upgrade to D2009 (Unicode excluded)?

To put things in to perspective, look at the things that were added between Delphi 7 and Delphi 2007. This was a significant high water mark. http://blogs.codegear.com/nickhodges/2007/03/28/33579 http://www.stevetrefethen.com/blog/VCLAndRTLEnhancementsSinceDelphi7D7.aspx Delphi 2009 sets the bar even higher. http://blogs.codegear.com/pawelglowacki/2008/11/03/38527 http://blogs.codegear.com/chrispattinson/2008/09/19/38897 Here are some of my favourites: Generics (naturally) and generic collections in the RTL. Improved build configurations where … Read more

Delphi 7: ADO, need basic coding example

@mawg, i wrote an simple program for you to ilustrate how work with ADO and Delphi. this is an console application, but explains the basics. before you execute this code you must download and install the odbc connector from this location. You can improve and adapt this code to your requirements. program ProjectMysqlADO; {$APPTYPE CONSOLE} … Read more

Http Post with indy

Indy has TIdMultipartFormDataStream for this purpose: procedure TForm1.SendPostData; var Stream: TStringStream; Params: TIdMultipartFormDataStream; begin Stream := TStringStream.Create(”); try Params := TIdMultipartFormDataStream.Create; try Params.AddFile(‘File1’, ‘C:\test.txt’,’application/octet-stream’); try HTTP.Post(‘http://posttestserver.com/post.php’, Params, Stream); except on E: Exception do ShowMessage(‘Error encountered during POST: ‘ + E.Message); end; ShowMessage(Stream.DataString); finally Params.Free; end; finally Stream.Free; end; end;