unit BACKUP;
interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, ComCtrls, Buttons, FileCtrl;//就这里!!!delphi 6才这样的,delphi 5 不会,现在有何呱呱叫,怎办啊!!!!
interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, ComCtrls, Buttons, FileCtrl;//就这里!!!delphi 6才这样的,delphi 5 不会,现在有何呱呱叫,怎办啊!!!!
解决方案 »
- 如何改变DBchart中柱子间的距离
- 一个查询问题
- 如何用RegQueryValue 或 RegQueryValueEx读取注册表 'HKEY_Classes_root\ExcelAddin.Calcu\Sclid'的默认值?
- 一个关于TDBGridEh的简单问题
- ADO创建DBF表的问题,急!求救!!!
- 如何生成调色板?
- 怎么动态添加treeview的子集项caption?
- 一个数据库多个客户端的问题?进者有分.
- 我的鼠标右键菜单总是黑的,怎么回事?如何解决?
- 如何压缩db数据库,paradox格式的.请给出代码
- 关于控件的问题!很菜的问题!
- 热切期盼“程序员大本营2001”能尽早出来(类似如程序员大本营2000 微软版,荟萃版等等)
代码就是这样:
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, ComCtrls, Buttons, FileCtrl;//, FileCtrl;type
TBK_FOR = class(TForm)
BK_Pan1: TPanel;
BK_Bit1: TBitBtn;
BK_Bit2: TBitBtn;
BK_Edi1: TEdit;
LAB1: TLabel;
BK_Dri1: TDriveComboBox;
BK_Dir1: TDirectoryListBox;
BK_Fil1: TFileListBox;
Label1: TLabel;
PB: TProgressBar;
BitBtn1: TBitBtn;
procedure BK_Dir1Click(Sender: TObject);
procedure BK_Bit1Click(Sender: TObject);
procedure BK_Edi1Change(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure BK_Dir1Change(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
P,K:INTEGER;
{ Public declarations }
end;
但我是用BDE+paradox数据库呀。
unit FileCtrl platform;
关于platform:Delphi的说明
he names of variables, constants, types, fields, properties, procedures, functions, programs, units, libraries, and packages are called identifiers. (Numeric constants like 26057 are not identifiers.) Identifiers must be declared before you can use them; the only exceptions are a few predefined types, routines, and constants that the compiler understands automatically, the variable Result when it occurs inside a function block, and the variable Self when it occurs inside a method implementation.A declaration defines an identifier and, where appropriate, allocates memory for it. For example,var Size: Extended;declares a variable called Size that holds an Extended (real) value, whilefunction DoThis(X, Y: string): Integer;declares a function called DoThis that takes two strings as arguments and returns an integer. Each declaration ends with a semicolon. When you declare several variables, constants, types, or labels at the same time, you need only write the appropriate reserved word once:var Size: Extended;
Quantity: Integer;
Description: string;The syntax and placement of a declaration depend on the kind of identifier you are defining. In general, declarations can occur only at the beginning of a block or at the beginning of the interface or implementation section of a unit (after the uses clause). Specific conventions for declaring variables, constants, types, functions, and so forth are explained in the documentation for those topics.
The 揾int?directives platform, deprecated, and library may be appended to any declaration. In the case of a procedure or function declaration, the hint directive should be separated from the rest of the declaration with a semicolon. Examples:procedure SomeOldRoutine; stdcall; deprecated;
var VersionNumber: Real library;
type AppError = class(Exception) ...
end platform;When source code is compiled in the {$HINTS ON} {$WARNINGS ON} state, each reference to an identifier declared with one of these directives generates an appropriate hint or warning. Use platform to items that are specific to a particular operating environment (such as Windows or Linux), deprecated to indicate that an item is obsolete or supported only for backward compatibility, and library to flag dependencies on a particular library or component framework (such as VCL or CLX).
你就不能在另一个平台下编译
不要急,听我说
那个Warning, ‘unit 'filectrl' is specific to a ......'
和主窗口退出时的提示没有任何关系。
因为Warning只是告诉你,因为你的程序中(或者用到的控件)调用了的filectrl单元,而该单元只在Windows平台下被支持,当你跨平台时就有问题而已。 所以这个警告可以不必理会。至于access violation at address 0049601e , 这种错误多半是因为你访问了一个已经被释放了的对象而造成的。还是好好检查一下程序中的所有Form的FormClose,FormDestroy事件的代码吧。不要急,总会解决的。