msimg32.lib link problems in BloodShed Dev-CPP

Alright, if any one has BloodShed Dev-CPP could you help with my problem?

So here it is, I'm programming games in win32 API using C++ and BloodShed Dev-CPP. I like Dev-CPP, but there's a problem. The TransparentBlt() function requires the msimg32.lib library to be linked to my code. Well I couldn't find msimg32.lib in the lib folder. I only found libmsimg32.a which I don't know if it is the same thing or not, but when I compile my code with the TransparentBlt() funtion in it, it still says that TransparentBlt() is undefined, which I'm sure means that msimg32.lib isn't being linked to it. Any body know the answer?


thanx,
Lynx

Comments

  • *.a are for MinGW(GCC),isn't GCC the default compiler for devcpp?
    [b]Add the following commands when calling compiler:
    -lmsimg32[/b]
  • : *.a are for MinGW(GCC),isn't GCC the default compiler for devcpp?
    : [b]Add the following commands when calling compiler:
    : -lmsimg32[/b]
    :
    i already found the problem solution but thanx.
    it's you have to add -WINVER=0x0500 because TransparentBlt() is defined there.
  • : i already found the problem solution but thanx.
    : it's you have to add -WINVER=0x0500 because TransparentBlt() is defined there.
    :
    even if you removed #if(WINVER>=xxx),the stupid linker still couldn't find the lib,Check the compile log.
    anyway, Why not use GDIplus? msimg32.dll has BUG!
    http://support.microsoft.com/?kbid=300555 *Blame MicroSoft* >:P

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories