请问我上午作了一个小程序,下午重新打开之后添加了东西,只是界面而已没有添加任何事件然后save project...之后我想测试运行一下就用F9但是只是一闪就没有了又回到原来的状态,在我设置的路径那里也找不到exe,这是怎么搞得阿?

解决方案 »

  1.   

    看看哪里被你给terminate或者Halt掉了。
    把你的program(项目工程文件)贴出来。
      

  2.   

    存放在 Windows默认的当前打开路径
    查找 Projiect1.exe 尝试一下?
      

  3.   

    代码是这样的很简单
    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.
      

  4.   

    贴一下你的dpr文件
    不是单元文件
      

  5.   

    我觉得应该是你的程序保存到你Delphi安装缺省的工程文件目录‘D:\Program Files\Borland\Delphi6’(此处我的Delphi安装在D盘所以如此),你到我给你的目录去找一下
      

  6.   

    按ctrl+f12
    选择除了unit1的另外一个
      

  7.   

    DPR文件是这个
    program Project1;uses
      Forms;{$R *.res}begin
      Application.Initialize;
      Application.Run;
    end.
      

  8.   

    Application.Initialize;
      Application.CreateForm(TForm1, Form1);//增加这句
      Application.Run;
    你没有创建主窗体的原因吧!
      

  9.   

    Application.CreateForm(TForm1, Form1);//运行后这句报错
      

  10.   

    错误:[Error] Project1.dpr(10): Undeclared identifier: 'TForm1'
      

  11.   

    能不能具体点?我才刚刚学习delphi两天还没到48小时呢谢谢了
      

  12.   

    这样:
    Delphi->Project->Add to Project。
    然后选择的主窗体单元文件(比如:Unit1.pas)。
    再试试刊。
      

  13.   

    移走的办法,Delphi->View->Project Manager里面。
      

  14.   

    我另外开啦!你快来领分
    http://expert.csdn.net/Expert/topic/1398/1398271.xml?temp=.7042963