On Sun, 21 Sep 2008, Petr Chornyj wrote:

Hi Peter,

> What compiler you use?
> I rebuild harbour from scratch with bcc 582 and got again
> .T.
> .F.
> Error: missing MAIN section in test.ini
> 
> I try it with msvc 71, OpenWatcom 17a, Digital Mars 8.51, even with bcc582 +
> harbour-11-b32.dll 
> .F.
> .F.
> PARAM1 => value
> PARAM2 => value 
> PARAM3 => value
> Ok

Very strange results. I do not know anything about compiler
dependent code in this example.
It's possible that it's a bug exploited only in some BCC
builds. Can you check the results of code below with CodeGuard
BCC builds?
BTW does it work with 1.0.1 BCC builds?

PROC MAIN()
   LOCAL cIniFile, hIni, v

   cIniFile := "test.ini"
   hIni := HB_IniRead( cIniFile )
   IF Empty( hIni )
      ? "Error: missing or wrong " + cIniFile
   ELSEIF ! "MAIN" $ hIni
      ? "Error: missing MAIN section in " + cIniFile
   ELSE
      FOR EACH v IN hIni[ "MAIN" ]
         ? v:__enumKey(), "=>", v
      NEXT
   ENDIF
RETURN

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to