Sign in to follow this  

TransparentBlt not found

This topic is 4305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

when using dev c++ i get the following error when using the TransparentBlt function: 'TransparentBlt' undeclared (first use this function) i have libwinmm.a and libmsimg32.a linked to the project. When i searched to see if anyone else had this problem several results said to use "#define WINVER 0x0500", because some windows versions don't support transparentblt. I tried using this and it only led to more errors. Ayone know whats going wrong?

Share this post


Link to post
Share on other sites
Edit: Wrong answer, look below for a better explanation.

Be warned though: TransparentBlt is only available in later Windows versions (98+), and it creates memory leaks on the 9x line.



[Edited by - Endurion on March 2, 2006 1:29:43 AM]

Share this post


Link to post
Share on other sites
Quote:
Original post by Endurion
Actually using #define WINVER=0x0500 should solve the problem (note the '='!).


Are you certain of that? An assignment in a preprocessor define? What would the token be?

Share this post


Link to post
Share on other sites
Quote:
Original post by LessBread
Quote:
Original post by Endurion
Actually using #define WINVER=0x0500 should solve the problem (note the '='!).


Are you certain of that? An assignment in a preprocessor define? What would the token be?


Crap, you're right. My bad!

Actually #define WINVER 0x0500 should be allright. If you set the WINVER macro in the preprocessor settings (i'm doing that for value defines) you do have to use the '=' though.

In Source code:
#define WINVER 0x0500

In preprocessor settings (Visual Studio for example):
WINVER=0x0500

There ought to be something similar for devc++.

Share this post


Link to post
Share on other sites
I was gonna say... [smile]

Setting that macro in the preprocessor configuration is probably a good idea.

In source code, the define should placed before the include statement for windows.h, so that it's defined in the scope where it comes into play.

#define WINVER 0x0500
#include <windows.h>

Share this post


Link to post
Share on other sites

This topic is 4305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this