[fpc-pascal] WinCE api calls info
Paul
paul.blommaerts at telenet.be
Sun Sep 14 00:23:51 CEST 2008
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
Paul
----- Original Message -----
From: "Felipe Monteiro de Carvalho" <felipemonteiro.carvalho at gmail.com>
To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
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 <paul.blommaerts at telenet.be> 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 maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
More information about the fpc-pascal
mailing list