OldCEF4Delphi TChromiumWindow in C++ Builder Form
Posted: Fri Jan 15, 2021 3:39 am
Hi,
Using C++ Builder 10.4, I am able to add the OldCEF4Delphi ChromiumWindow (TChromiumWindow) to a form (TForm).
However when building, a discrepancy between function declarations in uCEFMiscFunctions.hpp vs. the Windows timezoneapi.h header file are flagged. (Note that uCEFMiscFunctions.hpp is generated from uCEFMiscFunctions.pas in OldCEF4Delphi.)
The two functions are TzSpecificLocalTimeToSystemTime and SystemTimeToTzSpecificLocalTime (see below):
C++
----
extern "C" System::LongBool __stdcall TzSpecificLocalTimeToSystemTime(Winapi::Windows::PTimeZoneInformation lpTimeZoneInformation, Winapi::Windows::PSystemTime lpLocalTime, Winapi::Windows::PSystemTime lpUniversalTime);
extern "C" System::LongBool __stdcall SystemTimeToTzSpecificLocalTime(Winapi::Windows::PTimeZoneInformation lpTimeZoneInformation, Winapi::Windows::PSystemTime lpUniversalTime, Winapi::Windows::PSystemTime lpLocalTime);
Delphi
--------
function TzSpecificLocalTimeToSystemTime(lpTimeZoneInformation: PTimeZoneInformation; lpLocalTime, lpUniversalTime: PSystemTime): BOOL; stdcall; external Kernel32DLL;
function SystemTimeToTzSpecificLocalTime(lpTimeZoneInformation: PTimeZoneInformation; lpUniversalTime, lpLocalTime: PSystemTime): BOOL; stdcall; external Kernel32DLL;
Using C++ Builder 10.4, I am able to add the OldCEF4Delphi ChromiumWindow (TChromiumWindow) to a form (TForm).
However when building, a discrepancy between function declarations in uCEFMiscFunctions.hpp vs. the Windows timezoneapi.h header file are flagged. (Note that uCEFMiscFunctions.hpp is generated from uCEFMiscFunctions.pas in OldCEF4Delphi.)
The two functions are TzSpecificLocalTimeToSystemTime and SystemTimeToTzSpecificLocalTime (see below):
C++
----
extern "C" System::LongBool __stdcall TzSpecificLocalTimeToSystemTime(Winapi::Windows::PTimeZoneInformation lpTimeZoneInformation, Winapi::Windows::PSystemTime lpLocalTime, Winapi::Windows::PSystemTime lpUniversalTime);
extern "C" System::LongBool __stdcall SystemTimeToTzSpecificLocalTime(Winapi::Windows::PTimeZoneInformation lpTimeZoneInformation, Winapi::Windows::PSystemTime lpUniversalTime, Winapi::Windows::PSystemTime lpLocalTime);
Delphi
--------
function TzSpecificLocalTimeToSystemTime(lpTimeZoneInformation: PTimeZoneInformation; lpLocalTime, lpUniversalTime: PSystemTime): BOOL; stdcall; external Kernel32DLL;
function SystemTimeToTzSpecificLocalTime(lpTimeZoneInformation: PTimeZoneInformation; lpUniversalTime, lpLocalTime: PSystemTime): BOOL; stdcall; external Kernel32DLL;