[fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
Hi, where can I find a list of available api calls for WinCE/Arm ? I need to make a screenshot, set the cursor postion and inject keypresses. thanks, Paul ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailma

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
Found some in InterfaceBase; docs are very hard to find for a starter though . Why doesn't TBitmap.Create exist in WinCE? I'm trying to take a screenshot.. Paul - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Saturday, September 13,

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Felipe Monteiro de Carvalho
> where can I find a list of available api calls for WinCE/Arm ? Please note that your post is ambiguous. It is not clear what API you are trying to use. In the first post it seams to be the Windows CE API developed by Microsoft, which you can find searching in google for the following example str

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
http://lazarus-ccr.sourceforge.net/docs/lcl/ thanks for this link. Why doesn't TBitmap.Create exist in WinCE? Of course it exists. It's in the Graphics unit and it is part of Lazarus. You need to install Lazarus to use it, not just Free Pascal. is installed this way. http://wiki.lazaru

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Felipe Monteiro de Carvalho
On Sat, Sep 13, 2008 at 5:18 PM, Paul <[EMAIL PROTECTED]> wrote: > Unfortunalety, TBitmap.create is not recognized by the lazarus IDE (WinCE) Is the Graphics unit in your uses clause? TBitmap works in Windows CE, so there is something wrong with your code. -- Felipe Monteiro de Carvalho ___

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Mattias Gaertner
On Sat, 13 Sep 2008 17:13:31 -0300 "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote: > > where can I find a list of available api calls for WinCE/Arm ? > > Please note that your post is ambiguous. It is not clear what API you > are trying to use. In the first post it seams to be the Window

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
Is the Graphics unit in your uses clause? yes, it is TBitmap works in Windows CE, so there is something wrong with your code. var bmp: TBitmap; begin bmp:= TBitmap.Create; what's wrong with this? thanks, Paul ___ fpc-pascal maillist - f

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
- Original Message - From: "Mattias Gaertner" <[EMAIL PROTECTED]> Mouse.CursorPos.X := 80; Mouse.CursorPos.Y := 80; this is accepted in the IDE Mouse.CursorPos:=Point(80,80); this isn't accepted Paul ___ fpc-pascal maillist - fpc-pasca

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Mattias Gaertner
On Sat, 13 Sep 2008 22:44:43 +0200 "Paul" <[EMAIL PROTECTED]> wrote: > > - Original Message - > From: "Mattias Gaertner" <[EMAIL PROTECTED]> > >> Mouse.CursorPos.X := 80; > >> Mouse.CursorPos.Y := 80; > > this is accepted in the IDE Yes, because it is syntactically correct. But it only

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Felipe Monteiro de Carvalho
Please copy here your entire unit. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
- Original Message - From: "Mattias Gaertner" <[EMAIL PROTECTED]> What error do you get? unit1.pas Fatal: syntax error ")" exptected but "," found (in point (80,80)); Paul ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.or

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Mattias Gaertner
On Sat, 13 Sep 2008 23:04:49 +0200 "Paul" <[EMAIL PROTECTED]> wrote: > > - Original Message - > From: "Mattias Gaertner" <[EMAIL PROTECTED]> > > > What error do you get? > unit1.pas Fatal: syntax error ")" exptected but "," found (in > point (80,80)); You redefined Point somewhere

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
Cursorpos solved. I had units InterfaceBase, LCLIntf, LCLType still in the uses clause. Paul I has unuts - Original Message - From: "Mattias Gaertner" <[EMAIL PROTECTED]> To: Sent: Saturday, September 13, 2008 10:57 PM Subject: Re: [fpc-pascal] WinCE api calls info On Sat, 13 Sep

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
- Original Message - From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Saturday, September 13, 2008 11:01 PM Subject: Re: [fpc-pascal] WinCE api calls info Please copy here your entire unit. {$mode objfpc}{$H+} {.$smartlink on} {.$D

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
There are conflicts : when I remove Windows from the uses clause, then TBitmap.create is OK. But then HDC is not anymore Paul - Original Message - From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Saturday, September 13, 2008 11:01 PM Sub

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Felipe Monteiro de Carvalho
On Sat, Sep 13, 2008 at 6:17 PM, Paul <[EMAIL PROTECTED]> wrote: > when I remove Windows from the uses clause, then TBitmap.create is OK. > But then HDC is not anymore Try specifing Graphics.TBitmap -- Felipe Monteiro de Carvalho ___ fpc-pascal maillis

Re: [fpc-pascal] WinCE api calls info

2008-09-13 Thread Paul
Already done, uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls, windows; procedure captureScreen; var MyBitmap: Graphics.TBitmap; ScreenDC: HDC; begin MyBitmap := Graphics.TBitmap.Create; try Mybitmap.Canvas.CopyMode:= cmSrcInvert; //OK

[fpc-pascal] Unable to authenticate to update entry in "contributed units"

2008-09-13 Thread Michalis Kamburelis
Hi, I just added an entry to "contributed units" (Kambi VRML game engine). Of course, two seconds later I wanted to correct it. But I can't --- looks like I cannot authenticate. And it seems it's a bug, not my bad memory. When I input my current (both now and at the time of submitting the ent

Re: [fpc-pascal] Unable to authenticate to update entry in "contributed units"

2008-09-13 Thread Jonas Maebe
On 14 Sep 2008, at 00:25, Michalis Kamburelis wrote: 1. No email was generated, neither to fpc-announce nor to my private email. But I left both checkboxes "on" ("Send me a mail with confirmation.", and "Send a mail to the announcement mailing list.") when submitting my entry. fpc-announ

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

2008-09-13 Thread Francisco Reyes
Marco van de Voort writes: Should I try to build it in a FBSD i386 or AMD64? I built in on x86, but assembled and linked on AMD64. Are the steps documented somewhere? I downloaded fpc-2.2.2.i386-freebsd.tar How would I "build" Also, when one uses instal.sh, how does one uninstall? In a "r

Re: [fpc-pascal] DateTimeToFileDate

2008-09-13 Thread Carsten Bager
> 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 > > > - > > Program tt; > > uses dos, > > sysutils; > > > > function strPackTime(t:longWord):shortstring; > > var