anymore1113 / superobject

Automatically exported from code.google.com/p/superobject
0 stars 0 forks source link

Unit supertimezone does not compile under Delphi 2010 #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Delphi 2010
2. Add supertimezone to uses
3. Compile

Compilation Fails with error
[Error] supertimezone.pas(95): E2003 Undeclared identifier: 
'PDynamicTimeZoneInformation'

Original issue reported on code.google.com by syagrius...@gmail.com on 14 Aug 2014 at 11:25

GoogleCodeExporter commented 9 years ago
You can compile it when inserting this :

----------------------------------------------------------------------
type
  _TIME_DYNAMIC_ZONE_INFORMATION = record
    Bias: Longint;
    StandardName: array [0..31] of WCHAR;
    StandardDate: SYSTEMTIME;
    StandardBias: Longint;
    DaylightName: array [0..31] of WCHAR;
    DaylightDate: SYSTEMTIME;
    DaylightBias: Longint;
    TimeZoneKeyName: array [0..127] of WCHAR;
    DynamicDaylightTimeDisabled: BOOL;
  end;
  TDynamicTimeZoneInformation = _TIME_DYNAMIC_ZONE_INFORMATION;
  DYNAMIC_TIME_ZONE_INFORMATION = _TIME_DYNAMIC_ZONE_INFORMATION;
  PDynamicTimeZoneInformation = ^TDynamicTimeZoneInformation;
  TGetDynamicTimeZoneInformation =
    function (var pTimeZoneInformation: DYNAMIC_TIME_ZONE_INFORMATION): DWORD; stdcall;
  function GetDynamicTimeZoneInformation(var pTimeZoneInformation: DYNAMIC_TIME_ZONE_INFORMATION): DWORD; stdcall;
  external 'kernel32' name 'GetDynamicTimeZoneInformation';
----------------------------------------------------------------------
BEFORE the first "type" in unit supertimezone.pas.

Original comment by christia...@gmail.com on 24 Oct 2014 at 6:49