Skip to content

Commit

Permalink
Some updates for XE3
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderlan.anjos@gmail.com committed Mar 22, 2013
1 parent 934923e commit b70ba68
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions ExtPascalSamples/ExtPascalSamples.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ const
ServerName = 'ExtPascalSamples';

begin
DateSeparator := '/'; ShortDateFormat := 'd/M/yyyy';
TimeSeparator := ':'; ShortTimeFormat := 'hh:mm';
{$IFDEF VER240}
with TFormatSettings do begin
{$ENDIF}
DateSeparator := '/'; ShortDateFormat := 'd/M/yyyy';
TimeSeparator := ':'; ShortTimeFormat := 'hh:mm';
DecimalSeparator := '.';
{$IFDEF VER240}
end;
{$ENDIF}
FileMode := fmShareDenyWrite + fmOpenReadWrite;
DecimalSeparator := '.';
{$IFDEF DEFAULT}
Service := TService.Create(ServerName, ExtPascalVersion);
with Service do try
Expand Down
2 changes: 1 addition & 1 deletion ExtPascalSamples/Session.pas
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function SelfSession : TSession;
implementation

uses
SysUtils, ExtPascalUtils, Ext, ExtForm, StrUtils,
SysUtils, ExtPascalUtils, Ext, StrUtils,
{$IFNDEF WebServer}FCGIApp;{$ELSE}IdExtHTTPServer;{$ENDIF}

function SelfSession : TSession; begin
Expand Down
2 changes: 1 addition & 1 deletion Services.pas
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function TService.Stop : integer; begin
}
function TService.Start : integer;
const
Param : pchar = nil;
Param : pansichar = nil;
begin
Result := 0;
if FService = 0 then FService := OpenService(FManager, FName, SERVICE_ALL_ACCESS);
Expand Down

0 comments on commit b70ba68

Please sign in to comment.