PDA

View Full Version : Serious error: taskbar entry not shown!!



NecroDOME
07-09-2007, 04:19 PM
System: Windows XP (and Vista)
Compiler: Delphi 2007
Api: mmm... I guess its related to some Delphi-port-thingy...

Hi, It's not that serious,
I installed vista and with that Delphi 2007. BUT the problem is when I compile my old project from Turbo Delphi, I don't see any taskbar entry appearing..!!
Its the same for XP, so its not Windows-related.

Anyone know how to fix it without make a whole new project and just copy-n-paste the code?

NecroDOME
07-09-2007, 05:39 PM
k, I got it:


program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
&#91;b&#93;Application.MainFormOnTaskbar &#58;= True;&#91;/b&#93; <-- This line bold plz, its the solution
Application.CreateForm&#40;TForm1, Form1&#41;;
Application.Run;
end.