INI class in WTS - Bug ?

INI class in WTS - Bug ?

Postby Davide » Fri Jan 05, 2007 12:26 am

In Windows Terminal Service:
Code: Select all  Expand view
INI oIni FILE GetWinDir()+"\MyIni.ini"
  GET cEntry SECTION "Section" ENTRY "Entry" OF oIni DEFAULT "AAA"
ENDINI


GetWinDir() returns "c:\document and settings\administrator\windows", so MyIni.ini is created here (as it's not already existant). So far so good.

The problem is that IF c:\windows\MyIni.ini already exists, the c:\document and settings\administrator\windows\MyIni.ini file takes the defaults from c:\windows\MyIni.ini instead of the ones coded in the program ("AAA").

Is this supposed to work this way or is it a bug ?

Regards,
Davide
FWH 27 March 2006 - xH 0.99.60 - Bcc
Davide
 
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Postby Antonio Linares » Fri Jan 05, 2007 6:49 am

Davide,

It looks as a Windows behavior. If you review the class and the related winapi C file, you will see we don't do anything related
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Davide » Sat Jan 06, 2007 12:11 am

Antonio,
It looks as a Windows behavior. If you review the class and the related winapi C file, you will see we don't do anything related

yes, I've seen them. No problem once you know it :)
It took some time to me before realizing why my defaults were overwritten. Maybe you could put a note in the doc, so that other users in future will be aware of this behaviour.
Thanks,
Davide.
Davide
 
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests