Hello Ann,

> What will happen when someone will change the system time?
> What does (TDataTime-TDataTime) return? miliseconds?

DateTime returns the day's elapsed since 30 dec 1899. eg: 2 is 1 jan
1900 00:00, 1.5 is 1 jan 1900 12:00 etc. Meaning the fractions ar jsut
the fractions of the day. It go till milliseconds.

You can also use GetTickCount, however overrun every 28 day's or so. It
returns the milliseconds since startup of windows.

> Don't undertand... what message to form? How? What for?

Custom message handler is when you wants to execute code outside of an
event. It happens a little later when Delphi enters the message pump.
Custom message has to be larger than WM_USER. This is example:

const
  WM_NEXT_URL = WM_USER + 1;

private
  procedure WMNextUrl(var Msg: TMessage); message WM_NEXT_URL;

procedure TForm1.WMNextUrl(var Msg: TMessage);
begin
  // this function will execute 'from the middle of nowere
  // that is: the message pump
  // you also  have 2 parameters: Msg.WParam and Msg.LParam
end;

And to let the custom message handler execute:

PostMessage(Handle, WM_NEXT_URL, 0, 0);

---
Rgds, Wilfried
http://www.mestdagh.biz


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to