[fpc-pascal] WinCE api calls info

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Sep 14 11:56:31 CEST 2008


On Sun, 14 Sep 2008 00:23:51 +0200
"Paul" <paul.blommaerts at telenet.be> wrote:

> 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
>     ScreenDC := GetDC(0);
>     MyBitmap.LoadFromDevice(ScreenDC);
>    .
>   finally
>     ReleaseDC(ScreenDC);  <-- error wrong number of parameters
>   end;
> end;
> 
> I haven't found what the parameters have to be this way

Move cursor in the bracket and press Ctrl+Shift+Space.
Or use 'Find declaration' (Alt+Up) to jump to ReleaseDC and see its
definition.


Mattias



More information about the fpc-pascal mailing list