Re: Linking with CodeBlocks?
TransparentBlt() is a standard API function, see http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx. So, you should be able to use in the same way you use BitBlt(), GetDC(), or other API.
Quote:
It's part of the library msimg32.lib.
It is also part of Msimg32.dll, see http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx You make me realize that Bitblt() is also in two files, Gdi32.dll and Gdi32.lib. I didn't know there was a ".lib" version.
Re: Linking with CodeBlocks?
Yes, I do see a lot of open source projects, which use transparentblt API.
See below:
http://www.becoding.com/source/transparentblt/
Quote:
Originally Posted by
Chuckleluck
Hello. I'm new to the forums, so if I'm doing something wrong (like posting in the wrong section, etc.), please tell me.
I'm reading "Beginning Game Programming" by Michael Morrison and it requires me to use the TransparentBlt() function. It's part of the library msimg32.lib. I'm fairly new to CodeBlocks (having used DevC++ until I realized it was outdated), so I have ABSOLUTELY no idea about how to link libraries. I checked the CodeBlocks documentation, but there's several link options that I've found.
Could someone please show me how to add msimg32.lib to my libraries so the program will run?
If anyone needs these additional details:
Using Windows 7 64-bit
Using Code::Blocks 10.05
Using GNU GCC Compiler
Trying to compile the project Henway from Chapter 11 of the book mentioned above