The Wiert Corner – As I wrote before, I’m with the Delphi with haters camp, and this is why: Using the with statement in Delphi makes your code less future proof. The below code example is just one of many. I show it because I recently bumped into doing some long overdue code porting to Delphi XE3. Since I’ve been bitten by Example code where FIConData is of type NOTIFYICONDATAW that used to compile fine: with FIconData do begin cbSize := SizeOf(FIconData); Wnd := Self.Handle; uID := $DEDB; uFlags := NIF_MESSAGE or NIF_ICON or NIF_TIP; hIcon := ...
Visits by Source
Users who voted for this posting