小问题!!快来拿分!!!在线等待!!! 请问我上午作了一个小程序,下午重新打开之后添加了东西,只是界面而已没有添加任何事件然后save project...之后我想测试运行一下就用F9但是只是一闪就没有了又回到原来的状态,在我设置的路径那里也找不到exe,这是怎么搞得阿? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看看哪里被你给terminate或者Halt掉了。把你的program(项目工程文件)贴出来。 存放在 Windows默认的当前打开路径查找 Projiect1.exe 尝试一下? 代码是这样的很简单unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Label1: TLabel; CheckBox1: TCheckBox; CheckBox2: TCheckBox; Button1: TButton; Button2: TButton; GroupBox1: TGroupBox; RadioButton1: TRadioButton; RadioButton2: TRadioButton; Button3: TButton; Button4: TButton; Label2: TLabel; private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}end. 贴一下你的dpr文件不是单元文件 我觉得应该是你的程序保存到你Delphi安装缺省的工程文件目录‘D:\Program Files\Borland\Delphi6’(此处我的Delphi安装在D盘所以如此),你到我给你的目录去找一下 按ctrl+f12选择除了unit1的另外一个 DPR文件是这个program Project1;uses Forms;{$R *.res}begin Application.Initialize; Application.Run;end. Application.Initialize; Application.CreateForm(TForm1, Form1);//增加这句 Application.Run;你没有创建主窗体的原因吧! Application.CreateForm(TForm1, Form1);//运行后这句报错 错误:[Error] Project1.dpr(10): Undeclared identifier: 'TForm1' 能不能具体点?我才刚刚学习delphi两天还没到48小时呢谢谢了 这样:Delphi->Project->Add to Project。然后选择的主窗体单元文件(比如:Unit1.pas)。再试试刊。 移走的办法,Delphi->View->Project Manager里面。 我另外开啦!你快来领分http://expert.csdn.net/Expert/topic/1398/1398271.xml?temp=.7042963 Access表mdb数据库另存怎么实现 PWideChar如何转为String ? 问问 这个问题怎么解决?马上揭贴!!~~谢谢, 请问一个金额小写转大写的问题, 如何结帖?请问如何在MDI窗口的背景框内添加控件,并使控件可见?高分在线等待? 哪里有ADO_MTS_COM+下(李维写的书) 紧急求助一数据库问题! 急!!!TQUERY的数据怎样用execel打印出来? 使用delphi的installshield打包问题? MainMenu控件怎么不能用在ActiveXForm上? 一个DCOM问题
把你的program(项目工程文件)贴出来。
查找 Projiect1.exe 尝试一下?
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Label1: TLabel;
CheckBox1: TCheckBox;
CheckBox2: TCheckBox;
Button1: TButton;
Button2: TButton;
GroupBox1: TGroupBox;
RadioButton1: TRadioButton;
RadioButton2: TRadioButton;
Button3: TButton;
Button4: TButton;
Label2: TLabel;
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}end.
不是单元文件
选择除了unit1的另外一个
program Project1;uses
Forms;{$R *.res}begin
Application.Initialize;
Application.Run;
end.
Application.CreateForm(TForm1, Form1);//增加这句
Application.Run;
你没有创建主窗体的原因吧!
Delphi->Project->Add to Project。
然后选择的主窗体单元文件(比如:Unit1.pas)。
再试试刊。
http://expert.csdn.net/Expert/topic/1398/1398271.xml?temp=.7042963