I did this and it compiled clean but when the CreateDIBitmap was executed the hBmp created was NULL. Not sure why since all the fields fed to the CreateDIBitmap function are all populated.

Thanks.