Sorry about that the BitBlt function has incorrect signature.
The proper way to fix it is to change the signature to:
sorry.
The proper way to fix it is to change the signature to:
public static extern bool BitBlt(IntPtr hdc, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int dwRop);
(the last argument needs to be int and not long)sorry.