> saya ada buat ini file seperti contoh dibawah ini
>
> IniFile := TIniFile.create('test.ini');
>
> Setelah dijalankan file test.ini koq bisa ada di direktori c:\winnt?
Memang begitu. Kalau full path tidak disebutkan, INI file akan
dicreate/read di direktori %WinDir%. TIniFile ini kan wrapper dari
fungsi-fungsi WinAPI Write/GetPrivateProfileXXX, di dokumentasinya
dijelaskan seperti itu.
<platform_sdk_quote>
WritePrivateProfileString
...
If the lpFileName parameter does not contain a full path and file name
for the file, WritePrivateProfileString searches the Windows directory
for the file. If the file does not exist, this function creates the file
in the Windows directory.
</platform_sdk_quote>
> bukannya seharusnya adanya di mana projek tersebut disimpan??
Kalau ingin seperti itu anda harus spesifikasikan full path yang
dikehendaki. Misalnya:
IniFile := TIniFile.Create(ExtractFilePath(ParamStr(0)) + 'test.ini');
Salam
hans
--
Berlangganan: [EMAIL PROTECTED]
Stop Berlangganan: [EMAIL PROTECTED]
Keluhan Milis(Unbouncing,spam,dll): [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphindo/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
