|
@@ -35,7 +35,7 @@ uses
|
|
|
|
|
|
type
|
|
|
TSystemTime = Windows.TSystemTime;
|
|
|
-
|
|
|
+
|
|
|
EWinCEError = class(Exception)
|
|
|
public
|
|
|
ErrorCode : DWORD;
|
|
@@ -738,32 +738,23 @@ Function GetAppConfigDir(Global : Boolean) : String;
|
|
|
|
|
|
begin
|
|
|
If Global then
|
|
|
- Result:=DGetAppConfigDir(Global) // or use windows dir ??
|
|
|
+ Result:=GetSpecialDir(CSIDL_COMMON_APPDATA)
|
|
|
else
|
|
|
+ Result:=GetSpecialDir(CSIDL_APPDATA);
|
|
|
+ If (Result<>'') then
|
|
|
begin
|
|
|
- Result:=GetSpecialDir(CSIDL_APPDATA)+ApplicationName;
|
|
|
- If (Result='') then
|
|
|
- Result:=DGetAppConfigDir(Global);
|
|
|
- end;
|
|
|
+ if VendorName<>'' then
|
|
|
+ Result:=IncludeTrailingPathDelimiter(Result+VendorName);
|
|
|
+ Result:=Result+ApplicationName;
|
|
|
+ end
|
|
|
+ else
|
|
|
+ Result:=DGetAppConfigDir(Global);
|
|
|
end;
|
|
|
|
|
|
Function GetAppConfigFile(Global : Boolean; SubDir : Boolean) : String;
|
|
|
|
|
|
begin
|
|
|
- if Global then
|
|
|
- begin
|
|
|
- Result:=IncludeTrailingPathDelimiter(DGetAppConfigDir(Global));
|
|
|
- if SubDir then
|
|
|
- Result:=IncludeTrailingPathDelimiter(Result+'Config');
|
|
|
- Result:=Result+ApplicationName+ConfigExtension;
|
|
|
- end
|
|
|
- else
|
|
|
- begin
|
|
|
- Result:=IncludeTrailingPathDelimiter(GetAppConfigDir(False));
|
|
|
- if SubDir then
|
|
|
- Result:=Result+'Config\';
|
|
|
- Result:=Result+ApplicationName+ConfigExtension;
|
|
|
- end;
|
|
|
+ result:=DGetAppConfigFile(Global,SubDir);
|
|
|
end;
|
|
|
|
|
|
Function GetTempDir(Global : Boolean) : String;
|
|
@@ -939,7 +930,7 @@ procedure InitWinCEWidestrings;
|
|
|
begin
|
|
|
widestringmanager.CompareWideStringProc:=@WinCECompareWideString;
|
|
|
widestringmanager.CompareTextWideStringProc:=@WinCECompareTextWideString;
|
|
|
-
|
|
|
+
|
|
|
widestringmanager.UpperAnsiStringProc:=@WinCEAnsiUpperCase;
|
|
|
widestringmanager.LowerAnsiStringProc:=@WinCEAnsiLowerCase;
|
|
|
widestringmanager.CompareStrAnsiStringProc:=@WinCEAnsiCompareStr;
|