Re: [fpc-pascal] DateTimeToFileDate

2008-09-14 Thread Carsten Bager
> The FileDate format differ on unix and windows. UnpackTime uses the > windows format. You need another function for unix. Is the file date on Unix the number of seconds since 00:00:00 January 1, 1970. Carsten ___ fpc-pascal maillist - fpc-pascal@l

Re: [fpc-pascal] WinCE api calls info

2008-09-14 Thread Felipe Monteiro de Carvalho
The problem is too much ambiguity because the Windows unit declares a lot of stuff with the same names as LCL, so drop the Windows unit if you don't really need it and add LCLType and LCLIntf instead. Create a separate unit to isolate direct calls to the Windows API. -- Felipe Monteiro de Carvalh

Re: [fpc-pascal] FPC for FreeBSD AMD64?

2008-09-14 Thread Marco van de Voort
In our previous episode, Francisco Reyes said: > Are the steps documented somewhere? Generally the procedure for crosscompiling is in the buildfaq. But that is more the prepared case, when the port is ready. > I downloaded fpc-2.2.2.i386-freebsd.tar > How would I "build" > > Also, when one uses

Re: [fpc-pascal] WinCE api calls info

2008-09-14 Thread Mattias Gaertner
On Sun, 14 Sep 2008 00:23:51 +0200 "Paul" <[EMAIL PROTECTED]> wrote: > Already done, > > > uses > Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, > StdCtrls, > ExtCtrls, windows; > > > procedure captureScreen; > var > MyBitmap: Graphics.TBitmap; > ScreenDC: HDC; > b

Re: [fpc-pascal] DateTimeToFileDate

2008-09-14 Thread Mattias Gaertner
On Sun, 14 Sep 2008 10:38:25 +0200 "Carsten Bager" <[EMAIL PROTECTED]> wrote: > > AFAIK the unit Dos should not be used under Linux. > > > > > > Mattias > > I rewrote the code omitting the dos unit, and got the fowing. > In my opinion the windows output and the Linux output should be > (almost)

[fpc-pascal] WinCE simulate touchscreen click

2008-09-14 Thread Paul
I'm trying to simulate a click on the screen. I thought I could use mouse_event, but when I call mouse_event from a button, the button begins to flip (black-white-black...) Anyone knows how ? Paul ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] DateTimeToFileDate

2008-09-14 Thread Carsten Bager
> AFAIK the unit Dos should not be used under Linux. > > > Mattias I rewrote the code omitting the dos unit, and got the fowing. In my opinion the windows output and the Linux output should be (almost) the same, and then my conclusion is a compiler/rtl error. Do you agree (I have also tested the 2

Re: [fpc-pascal] DateTimeToFileDate

2008-09-14 Thread Mattias Gaertner
On Sun, 14 Sep 2008 07:42:12 +0200 "Carsten Bager" <[EMAIL PROTECTED]> wrote: > > Zitat von Carsten Bager <[EMAIL PROTECTED]>: > > > > > When I do this > > > > > > Free Pascal Compiler version 2.2.2 [2008/07/29] for i386 > > > > Which OS? > Linux AFAIK the unit Dos should not be used under L