marco
cantu

Mastering Delphi Mastering Delphi

Errors List

If you have read my book, Mastering Delphi, you can find in this page a list of bugs and minor problems in it. If you have found something else not listed here, I'll be happy to update the page. And if you refer other readers to this page, thanks a lot.


procedure TListForm.OnActivate (Sender: TObject;
  Activating: Boolean);
var
  Task: TTaskEntry;
begin
  {structure size, or version}
  Task.dwSize := SizeOf(TTaskEntry);
  
  {read the first task name}
  TaskFirst(@Task);
  ListBox1.Items.Add(Task.szModule);
  
  {read following task names}
  while TaskNext(@Task) = TRUE do
	ListBox1.Items.Add(Task.szModule);
end;