Tarea #569 -> Revisar la aplicación para que no de problemas con Windows 7
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@548 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
122116ebd8
commit
82a3318b0c
@ -43,7 +43,8 @@ implementation
|
||||
|
||||
uses
|
||||
uDataModuleConexion, Dialogs, TBX, TBXThemes, Forms, Windows,
|
||||
JclFileUtils, cxControls, SysUtils, uDataModuleConfiguracion;
|
||||
JclFileUtils, cxControls, SysUtils, uDataModuleConfiguracion,
|
||||
uSistemaFunc, SHFolder;
|
||||
|
||||
{
|
||||
*********************************** TdmBase ************************************
|
||||
@ -59,14 +60,23 @@ begin
|
||||
end;
|
||||
|
||||
procedure TdmBase.IniciarLog;
|
||||
var
|
||||
ALogFileName : String;
|
||||
begin
|
||||
FEscribirLog := TCriticalSection.Create;
|
||||
|
||||
JvLogFile.Active := False;
|
||||
JvLogFile.FileName := ExtractFilePath(Application.ExeName) + 'ClientLog.txt';
|
||||
JvLogFile.AutoSave := True;
|
||||
JvLogFile.Active := True;
|
||||
JvLogFile.Clear;
|
||||
ALogFileName := GetSpecialFolderPath(CSIDL_APPDATA); //[Current Users]\Application Data
|
||||
ALogFileName := ALogFileName + PathDelim + 'Rodax Software' + PathDelim + 'FactuGES' + PathDelim;
|
||||
if SysUtils.ForceDirectories(ALogFileName) then
|
||||
begin
|
||||
JvLogFile.Active := False;
|
||||
JvLogFile.FileName := ALogFileName + 'ClientLog.txt';
|
||||
JvLogFile.AutoSave := True;
|
||||
JvLogFile.Active := True;
|
||||
JvLogFile.Clear;
|
||||
end
|
||||
else
|
||||
raise Exception.Create('Error al crear directorio para Log: ' + IntToStr(GetLastError));
|
||||
end;
|
||||
|
||||
procedure TdmBase.InitStyleManager(ThemeID : integer = 0);
|
||||
|
||||
@ -343,7 +343,7 @@ begin
|
||||
if Assigned(_FocusedView) then
|
||||
begin
|
||||
|
||||
AIniFile := GetSpecialFolderPath(CSIDL_COMMON_APPDATA); //[All Users]\Application Data
|
||||
AIniFile := GetSpecialFolderPath(CSIDL_APPDATA); //[Current Users]\Application Data
|
||||
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + GetAppName + PathDelim;
|
||||
|
||||
if not DirectoryExists(AIniFile) then
|
||||
@ -441,7 +441,7 @@ begin
|
||||
if Assigned(_FocusedView) then
|
||||
begin
|
||||
|
||||
AIniFile := GetSpecialFolderPath(CSIDL_COMMON_APPDATA); //[All Users]\Application Data
|
||||
AIniFile := GetSpecialFolderPath(CSIDL_APPDATA); //[Current Users]\Application Data
|
||||
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + GetAppName + PathDelim;
|
||||
|
||||
if not DirectoryExists(AIniFile) then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user