Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-10

Help collecting GetAppConfigDir output

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

I am trying to collect the output of GetAppConfigDir/File from various systems, but I don't have easy access to a Windows Vista computer. Maybe someone would be kind enough to run the following trivial application in Windows Vista and return the output =)

thanks in advance,

program project1;
{$mode objfpc}{$H+}
uses
  SysUtils;
begin
  WriteLn(GetAppConfigDir(True));
  WriteLn(GetAppConfigDir(False));
  WriteLn(GetAppConfigFile(True));
  WriteLn(GetAppConfigFile(False));
end.
Felipe Monteiro de Carvalho

Reply by email

Martin
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 23 lines
Hello, I am trying to collect the output of GetAppConfigDir/File from various systems, but I don't have easy access to a Windows Vista computer. Maybe someone would be kind enough to run the following trivial application in Windows Vista and return the output =) thanks in advance, program project1; {$mode objfpc}{$H+} uses SysUtils; begin WriteLn(GetAppConfigDir(True)); WriteLn(GetAppConfigDir(False)); WriteLn(GetAppConfigFile(True)); WriteLn(GetAppConfigFile(False)); end.

32bit vista home premium SP2

C:\ProgramData\project1\
C:\Users\martin\AppData\Local\project1\
C:\ProgramData\project1\project1.cfg
C:\Users\martin\AppData\Local\project1\project1.cfg

Reply by email

Martin
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 6 lines
FPC 2.2.4? The implementation changed of this routine changed in recent versions. thanks,

last result was with
Free Pascal Compiler version 2.5.1 [2009/09/22] for i386

just tried with
Free Pascal Compiler version 2.2.5 [2009/04/03] for i386 same results:
C:\ProgramData\project1\
C:\Users\martin\AppData\Local\project1\
C:\ProgramData\project1\project1.cfg
C:\Users\martin\AppData\Local\project1\project1.cfg

Reply by email

Martin
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
Thanks a lot. The change I was talking about was between 2.2.0 and 2.2.4

Yep, here are the results with the oldest fpc, I still have... (2.2.2 seems to have the newer/other result)
Free Pascal Compiler version 2.2.0 [2007/11/14] for i386

C:\Users\martin\AppData\Local\Temp
C:\Users\martin\AppData\Local\project1
C:\Users\martin\AppData\Local\Temp\project1.cfg
C:\Users\martin\AppData\Local\project1\project1.cfg

Reply by email