![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
проект при запуске показывает ошибку [D7, XP]
marales © (2011-02-17 10:13:00)program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
и сама форма:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, inifiles;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Label1: TLabel;
RadioButton1: TRadioButton;
RadioButton2: TRadioButton;
RadioButton3: TRadioButton;
Label2: TLabel;
procedure Button1Click(Sender: TObject);
procedure RadioButton1Click(Sender: TObject);
procedure RadioButton2Click(Sender: TObject);
procedure RadioButton3Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
players: integer;
inipl: Tinifile;
iniopt: Tinifile;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
form1.Label2.Caption:=inttostr(players);
end;
procedure TForm1.RadioButton1Click(Sender: TObject);
begin
players:=2;
end;
procedure TForm1.RadioButton2Click(Sender: TObject);
begin
players:=3;
end;
procedure TForm1.RadioButton3Click(Sender: TObject);
begin
players:=4;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
inipl.Create('C:\program files\bussinesman\players.ini');
iniopt.Create('C:\program files\bussinesman\option.ini');
end;
end.
brother (2011-02-17 10:35:00) [1]удачи!
marales (2011-02-17 10:21:00) [2]спасибо получилось
brother (2011-02-17 10:16:00) [3]http://delphiworld.narod.ru/base/tinifile_exam.html