> Check ---> hBitmap = CreateCompatibleBitmap((HDC) hDCSrc, 640, 480);
> (what type does this function return?)
It returns an HBITMAP which is what hBitmap is. But the next line:
SetClipboardData(CF_BITMAP, hBitmap) --> the 2nd param is expected to be of HANDLE type.
I pass in an HBITMAP type but if I understand the documentation correctly, this should be ok...