送分50:要 use 哪个unit才能使用TIniFile?(50分)

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

czdd

Unregistered / Unconfirmed
GUEST, unregistred user!
var
IniFile: TIniFile;
编译时出现[Error] Unit1.pas(27): Undeclared identifier: 'TIniFile'
 
uses IniFiles;
 
看帮助!
TIniFile is a low-level wrapper for the 16-bit Windows 3.x INI file system that
enables storage and retrieval of application-specific information and settings
in an application-specific INI file.

Unit

inifiles

Description

TIniFile enables handling the storage and retrieval of application-specific
information and settings in a Windows 3.x INI file. The INI file text format is
the standard way for Windows 3.x applications to store and retrieve application
settings from session to session. An INI file stores information in logical
groupings, called 搒ections.?For example, the WIN.INI file contains a section
called 揫Desktop]? Within each section, actual data values are stored in named
keys. Keys take the form:

<keyname>=<value>

The FileName passed to a TIniFile object when it is created is the name of the
INI file the object accesses.

Note: Under 32-bit Windows systems, applications typically replace INI files
with the system registry where all applications store and retrieve their settings.
Delphi provides additional classes for handling the system registry. TRegistry
encapsulates the system registry. TRegistryIniFile also encapsulates the registry,
but shares a common ancestor with TIniFile so that the same code can access entries
stored in either format.
 
不是吧, 这也要问
纯粹是为了加重大富翁服务器的负担吗?[:D]
以后碰到类似的问题就不用问了,用下面的两种办法肯定可以找到:
1、看帮助,在关键字上按F1,自然会找到这个东东在哪个单元
2、在方法1无效的情况下,用Windows的查找功能,在Delphi的Source目录下查找
*.pas,包含此关键字的Pas文件列出来后就可以看出是哪个了!
 
多谢3位,对不住,先下手为强,各位动作真快![:)]
 
考!来晚了~~[:D]
 
xianjun:你的第二个方法真好,受教了。[:)]
 
xianjun说的有道理,我以前也是用你的方法查到这个解决方案的!
uses IniFiles;
 
后退
顶部