Form1 :=TForm1.Create(Self)与
Application.Create(TForm1, Form1);

解决方案 »

  1.   

    constructor TCustomForm.Create(AOwner: TComponent);
    begin
      GlobalNameSpace.BeginWrite;
      try
        CreateNew(AOwner);
        if (ClassType <> TForm) and not (csDesigning in ComponentState) then
        begin
          Include(FFormState, fsCreating);
          try
            if not InitInheritedComponent(Self, TForm) then
              raise EResNotFound.CreateFmt(SResNotFound, [ClassName]);
          finally
            Exclude(FFormState, fsCreating);
          end;
          if OldCreateOrder then DoCreate;
        end;
      finally
        GlobalNameSpace.EndWrite;
      end;
    end;-----------------------------------------------------------------------procedure TApplication.CreateForm(InstanceClass: TComponentClass; var Reference);
    var
      Instance: TComponent;
    begin
      Instance := TComponent(InstanceClass.NewInstance);    
      TComponent(Reference) := Instance;  
      try
        Instance.Create(Self);
      except
        TComponent(Reference) := nil;
        raise;
      end;
      if (FMainForm = nil) and (Instance is TForm) then
      begin
        TForm(Instance).HandleNeeded;
        FMainForm := TForm(Instance);
      end;
    end;
      

  2.   


    Application.Create(TForm1, Form1) = TForm1.Create(application)?
      

  3.   

    Application.Create(TForm1, Form1) = Form1:=TForm1.Create(application)?
      

  4.   

    FrameSniper(人类不能不吃饭@手机不能不充电.net) 请问你是是不是在dephi的帮助里面找到函数的吗?可以告诉我如何用delphi的帮助吗?!
      

  5.   

    很简单,一个要application,一个不要,在一般应用中等同,但在一些不需要application的DLL中就应该使用不带application。
    补充一点的,应用project中如果要打开mainform则好象必须使用带application的。