-
TransparentBlt error
I was trying to load a bitmap and have a certain color of it be transparent, I was using magenta. So I tried to use the TransparentBlt function but it came up saying implicit declaration. I know it is used correctly because I checked it and even in a book I have it is used the same way. I did link the msimg32.lib file but still have errors. I am using Dev-C++ 4 on Windows XP Pro. Why would it do this when it is being declared correctly, and yes I do have #include <windows.h> in my header. The code is kinda long otherwise I would have posted it. If need be I will take out that snippet and explain. Thanks.
-
TransparentBlt is conditionally declared, together with the other msimg.lib functions, within wingdi.h (look up the function in the header to see how it's done for yourself). So, to avoid the error you are getting you should #define WINVER 0x0500 for your project or simply #define WINVER 0x0500 prior to #including windows.h. This msdn page will probably be of some interest to you and for future reference for problems of this kind.
-
It comes up with a new error saying I'm redefining WINVER.
-
try checking your project options. look for preprocessor symbols. change definition of it there or just undef it before redefining it.