Hello all! I need to write simple game with Forms, Buttons, but by using only!!! .dpr file.
I tried to transfer the information from .pas, .dfm files and even has achieved success to compile it, but at start there is an exception EResNotFound ('Resourse TForm1 not found')
I shall be very grateful for any help. Now it something like this:
program Project1;
{$R *.res}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
with Form1 do
begin
Left :=192 ;
Top:= 112 ;
Width :=696 ;
Height :=480 ;
Caption :='Form1' ;
Color :=clBtnFace ;
Font.Charset :=DEFAULT_CHARSET ;
Font.Color :=clWindowText;
Font.Height :=-11 ;
Font.Name :='MS Sans Serif' ;
Font.Style :=[] ;
OldCreateOrder :=False ;
PixelsPerInch :=96 ;
//TextHeight :=13 ;
end;
Application.Run;
end.