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
|
uses
|
||||||
uDataModuleConexion, Dialogs, TBX, TBXThemes, Forms, Windows,
|
uDataModuleConexion, Dialogs, TBX, TBXThemes, Forms, Windows,
|
||||||
JclFileUtils, cxControls, SysUtils, uDataModuleConfiguracion;
|
JclFileUtils, cxControls, SysUtils, uDataModuleConfiguracion,
|
||||||
|
uSistemaFunc, SHFolder;
|
||||||
|
|
||||||
{
|
{
|
||||||
*********************************** TdmBase ************************************
|
*********************************** TdmBase ************************************
|
||||||
@ -59,14 +60,23 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TdmBase.IniciarLog;
|
procedure TdmBase.IniciarLog;
|
||||||
|
var
|
||||||
|
ALogFileName : String;
|
||||||
begin
|
begin
|
||||||
FEscribirLog := TCriticalSection.Create;
|
FEscribirLog := TCriticalSection.Create;
|
||||||
|
|
||||||
JvLogFile.Active := False;
|
ALogFileName := GetSpecialFolderPath(CSIDL_APPDATA); //[Current Users]\Application Data
|
||||||
JvLogFile.FileName := ExtractFilePath(Application.ExeName) + 'ClientLog.txt';
|
ALogFileName := ALogFileName + PathDelim + 'Rodax Software' + PathDelim + 'FactuGES' + PathDelim;
|
||||||
JvLogFile.AutoSave := True;
|
if SysUtils.ForceDirectories(ALogFileName) then
|
||||||
JvLogFile.Active := True;
|
begin
|
||||||
JvLogFile.Clear;
|
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;
|
end;
|
||||||
|
|
||||||
procedure TdmBase.InitStyleManager(ThemeID : integer = 0);
|
procedure TdmBase.InitStyleManager(ThemeID : integer = 0);
|
||||||
|
|||||||
@ -343,7 +343,7 @@ begin
|
|||||||
if Assigned(_FocusedView) then
|
if Assigned(_FocusedView) then
|
||||||
begin
|
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;
|
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + GetAppName + PathDelim;
|
||||||
|
|
||||||
if not DirectoryExists(AIniFile) then
|
if not DirectoryExists(AIniFile) then
|
||||||
@ -441,7 +441,7 @@ begin
|
|||||||
if Assigned(_FocusedView) then
|
if Assigned(_FocusedView) then
|
||||||
begin
|
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;
|
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + GetAppName + PathDelim;
|
||||||
|
|
||||||
if not DirectoryExists(AIniFile) then
|
if not DirectoryExists(AIniFile) then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user