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] 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] WinCE api calls info

2008-09-13 Thread Paul
<[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Sunday, September 14, 2008 12:11 AM Subject: Re: [fpc-pascal] WinCE api calls info On Sat, Sep 13, 2008 at 6:17 PM, Paul <[EMAIL PROTECTED]> wrote: when I remove Windows from the uses clause, then TBitmap.create

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
eptember 13, 2008 11:01 PM Subject: Re: [fpc-pascal] WinCE api calls info Please copy here your entire unit. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/m

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 obj

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 in

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
- 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 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 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 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 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 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 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 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
> 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
" Sent: Saturday, September 13, 2008 4:50 PM Subject: [fpc-pascal] WinCE api calls info 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] 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