Rich Morey
2007-11-17 21:23:54 UTC
Hi --
I would like to store some configuration in an INI file for my web app. I am
running a ISAPI DLL built with Delphi 7 running on IIS 6.0 on Windows 2003.
When I attempt to use the following code:
INIFILE := TStringList.Create;
INIFILE.LoadFromFile('CONFIG.INI')
The file is not found. I did a GetCurrentDir call and the "current"
directory was listed as the \windows\system directory! Have I configured
something incorrectly on my IIS server or is this a change in Windows? I am
planning to use the same DLL for a few projects so I want to have different
configuration info in the INI file.
Any help would be greatly appreciated.
Thanks,
Rich
I would like to store some configuration in an INI file for my web app. I am
running a ISAPI DLL built with Delphi 7 running on IIS 6.0 on Windows 2003.
When I attempt to use the following code:
INIFILE := TStringList.Create;
INIFILE.LoadFromFile('CONFIG.INI')
The file is not found. I did a GetCurrentDir call and the "current"
directory was listed as the \windows\system directory! Have I configured
something incorrectly on my IIS server or is this a change in Windows? I am
planning to use the same DLL for a few projects so I want to have different
configuration info in the INI file.
Any help would be greatly appreciated.
Thanks,
Rich