Jump to content
  • Advertisement
Sign in to follow this  
flounder

TransparentBlt not found

This topic is 4614 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
Advertisement
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
Thanks for the replies. ya, it threw a fit at the '=', defining the version without the = seems to make it all work okay.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!