问题问题,肯定给分!!!!(60分)

  • 主题发起人 crystal_bobo
  • 开始时间
C

crystal_bobo

Unregistered / Unconfirmed
GUEST, unregistred user!
1,我要进行与后台为SQL Server数据库的连接以及访问和对应操作
要需不需要用到DataBase Desktop吗?
我要如何建立与这个数据库的连接?
请说说要开始进行设计的相应步骤
我现在也就是不知道从何下手:

2,同时请看看我在简单设计时出现的问题:
(project1文档中)
program Project1;

uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {fengmian},


{$R *.RES}

begin
fengmian:=Tfengmian.Create(Application);
fengmian.Show;
fengmian.Update;

Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Tfengmian, fengmian);
Application.CreateForm(TForm3, Form3);
fengmian.Hide;
fengmian.Free;

Application.Run;

end.


(Unit1文档中)
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Menus;

type
TForm1 = class(TForm)
MainMenu1: TMainMenu;
N1: TMenuItem;
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.DFM}
uses Unit2;

end.

但是运行时总是提示有这些错误:
1dentifier expected but 'Begin'found
Undeclared identifier 'fengmian'
Missing operator or semicolon
对于这些:fengmian:=Tfengmian.Create(Application);
fengmian.Show;
fengmian.Update;

Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Tfengmian, fengmian);
Application.Run;

fengmian.Hide;
fengmian.Free;

总是提示Missing operator or semicolon
 
你的unit2肯定有错,贴出来看一下。
 
老兄,你有没有搞错呀,把“;”写城“,”不错才怪呢,记着给分哟!·!!
 
program Project1;

uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {fengmian}“,”应该为“;”

明白吧!,给分哟!!
 
多人接受答案了。
 

Similar threads

I
回复
0
查看
487
import
I
I
回复
0
查看
643
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
顶部