{$I Compilers.Inc}uses Dialogs, Forms, Classes, SysUtils,
{$ifdef DELPHI_4}
DsgnIntf,
{$endif DELPHI_4}{$ifdef DELPHI_5}
DsgnIntf,
{$endif DELPHI_5}{$ifdef DELPHI_6}
DesignIntf,DesignEditors,
{$endif DELPHI_6}{$ifdef DELPHI_7}
DesignIntf,DesignEditors,
{$endif DELPHI_7}{$ifdef CPPB_5}
DsgnIntf,
{$endif CPPB_5}{$ifdef CPPB_6}
DesignIntf,DesignEditors,
{$endif CPPB_6}
{$ifdef DELPHI_4}
DsgnIntf,
{$endif DELPHI_4}{$ifdef DELPHI_5}
DsgnIntf,
{$endif DELPHI_5}{$ifdef DELPHI_6}
DesignIntf,DesignEditors,
{$endif DELPHI_6}{$ifdef DELPHI_7}
DesignIntf,DesignEditors,
{$endif DELPHI_7}{$ifdef CPPB_5}
DsgnIntf,
{$endif CPPB_5}{$ifdef CPPB_6}
DesignIntf,DesignEditors,
{$endif CPPB_6}
解决方案 »
- 问下关于Delphi 编译的问题
- 如何给DBGridEh1定位,显示不同颜色?
- 如何将数据库中的一条记录拆分?
- 哪位老大知道下面的錯誤提示是甚麼意思;怎麼解決?
- 怎样在一个字符串中使用字符串变量
- 哪有DELPHI开发人员指南下载呀?
- 用了几天的 PALM 软件开发工具再回过头用Delphi,好像悟出了一些道理,大家指教以下...
- zt:网络平台成为广告投放新焦点,MIND概念引人注目
- 严正抗议:为什么在高手区我发不了言?
- 日期間隔
- 急!请教各位大侠,在ttable控件中有一个属性是indexfieldnames,这个属性里设的值是起什么作用的,和实际数据库中表的index有什么关系吗
- quickRpt中如何让页面默认纸张是横向的?
是学习的~~
请大家帮忙
表示什么意思??
{$ifdef ...}
...
{$endif ...}
是什么做含意??
谢谢!
{$ifdef ...}
...
{$endif ...}
又是什么含意??
谢谢!
DesignIntf,DesignEditors, << DELPHI_7
......其它的都被忽略了
有点类似#include Compiler.Inc,但是是直接将文件原封不动塞进代码中;
e.g.
MessageBox(handle, PChar({$I d:\f.txt}), '$i demo', MB_OK or MB_ICONINFORMATION);//f.txt's content; 'Hello, mars!'
后面两个ifdef和endif呢?
ifdef和endif是配套使用,elseif是可选ifdef 条件
为真的时候编译
elseif
为假的时候编译
endif看Help就明白的了