Posted May 1, 201510 yr I'm using plain C to call these functions of GDI+ ,and response WM_PAINT with this function ,the last call of GdipDrawImage returns 0, it means success ,but on my picture control I can not find my picture on it.source.txt
May 1, 201510 yr i see u posted this everywhere & like everyone tells u, you're trying to use c++ features in c. u arent even using proper gdi+ objects in that code amungst other errors. if all u want to do is load a bitmap to a hwnd in raw C, id use gdi, u can use BitBlt to cache a bitmap, load your image via fopen(), cut off the header, and memcpy the pixels in. there are C sources here that will get u started.
Create an account or sign in to comment