pbsoft Posted May 1, 2015 Posted May 1, 2015 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
simple Posted May 1, 2015 Posted May 1, 2015 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. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now