CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2011
    Posts
    1

    Question Linking with CodeBlocks?

    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

  2. #2
    Join Date
    Apr 2009
    Posts
    598

    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.
    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.

  3. #3
    Join Date
    Jul 2011
    Posts
    4

    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 View Post
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured