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; > 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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal