Vote UpVote

Delphi class helpers: a practical example.

The Programming Works – Using the standard VCL TFileStream class you can’t set a sharing mode for a new file until Delphi 2010. A trick like this var Stream: TStream; begin Stream:= TFileStream.Create('TEST', fmCreate or fmShareDenyWrite); ... is useless since fmCreate or fmShareDenyWrite = fmCreate, and you can see from VCL sources that a new file is created without sharing. There is a bug report #71632 on QC currently marked as “fixed” (in Delphi 2010, and I am using Delphi 2009). If one need to create a new file with sharing enabled in Delphi 2009 or prior Delphi version, a class helper ...
Favorite? Off-Topic? Serg @ 2010-06-15 11:34


Visits: 36
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)