I can not get the function
GetProfString(SRCDIR^"License.ini", "License", KeyName, svResult);
to work?!?!?
After I have builded my ISWI project to a CD i copy a License.ini file to the disk image - at runtime I would like to read data from the ini file... it doen't work!?!?!? Has anyone tried this?
In my case I copy the License.ini til the diskimages\disk1\
I try to read useing this function:
function ReadLicenseFile(KeyName, RdString, MaxLen)
NUMBERnvFileOut;
STRING svResult;
begin
GetProfString(SRCDIR^"License.ini", "License", KeyName, svResult);
if StrLength(svResult) > MaxLen then
StrSub(RdString, svResult, 0, MaxLen);
else
RdString = svResult;
endif;
end;
Thanking You in anticipation
Thomas Eskesen