🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8377

Re: TIniFiles

#8377
From: Lothar
Date: Thu, 04 Nov 2004 12:38
43 lines
2099 bytes
void CPtimer::TestINI()
{
   TIniFile *pIniFile;
   char  DisplayStr[200];

   if (!TestINIok) return;
try {
   try {
      pIniFile = new 
TIniFile(ExtractFilePath(ParamStr(0))+"SpeedraTest.ini");
      if (pIniFile) {
        pIniFile->WriteDateTime("Test",TestINIstart, Now());
        sprintf(DisplayStr,"TestINI ok %d",pIniFile);
        Display(DisplayKanalx,DisplayStr);
      } else {
        DisplaySystemError(DisplayKanalx,"TestINI Fehler");
        TestINIok=false;
        Form1->EndeundNeustartwennohneAnruf->Checked= true;   // new 
start of program
      }
   } catch(const Exception& e) {
        DisplaySystemError(DisplayKanalx,"Exception TestINI");
        sprintf(DisplayStr,"!!!Exception: %s at 
0x%X",NoSteuer(e.Message).c_str(),ExceptAddr());
        Display(DisplayKanalx,DisplayStr);
        TestINIok=false;
        Form1->EndeundNeustartwennohneAnruf->Checked= true;   // new 
start of program
   }

   delete pIniFile;
} catch(const Exception& e) {
}
}


David Scheffel schrieb:

>Could you post the source code? 
>
>
>  
>
Technical Details
Message-ID: <418a22f5$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4189f894$1@newsgroups.borland.com> <418a15ad$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,db95008868615205
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 04 Nov 2004 13:38:33 +0100
From: Lothar <Lothar.Huppertz@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)
X-Accept-Language: de-DE, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: TIniFiles
References: <4189f894$1@newsgroups.borland.com> <418a15ad$1@newsgroups.borland.com>
In-Reply-To: <418a15ad$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 80.133.130.243
Message-ID: <418a22f5$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099571957 80.133.130.243 (4 Nov 2004 04:39:17 -0700)
Lines: 44
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail