Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#4

Re: Icon für EXE Datei ( Programm )

  Alt 30. Sep 2008, 22:29
Oh, ja, das sollte da stehen:
Delphi-Quellcode:
unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm2 = class(TForm)
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form2: TForm2;

implementation

{$R *.dfm}

end.
Und die Projketdatei (Menü -> Proket -> Quellcode ansehen} sollte so aussehen:
Delphi-Quellcode:
program Project3;

uses
  Forms,
  Unit2 in 'Unit2.pas{Form2};

{$R *.res}

begin
  Application.Initialize;
  Application.CreateForm(TForm2, Form2);
  Application.Run;
end.
Existiert die Datei? Dann muss da noch eine Projektname.res Datei existieren. Kannst du dein Projket kompilieren?
Michael
  Mit Zitat antworten Zitat