Menu

new GDI function AlphaBlend undefined referen

2007-04-07
2012-09-26
  • pronecracker

    pronecracker - 2007-04-07

    Hello
    I want to use the GDI function AlphaBlend. It was not recognized at first, but that was the same problem as with TransparentBlt, I fixed it by adding this line before #include <windows.h>:

    define WINVER 0x0502

    But now I'm getting the undefined reference error:

    Compiler: Default compiler
    Building Makefile: "C:\Program Files\Dev-Cpp\Makefile.win"
    Executing make...
    make.exe -f "C:\Program Files\Dev-Cpp\Makefile.win" all
    g++.exe alphablendtest.o -o "alphablendtest.exe" -L"C:/Program files/Dev-Cpp/lib" -mwindows

    alphablendtest.o(.text+0x378):alphablendtest.cpp: undefined reference to `AlphaBlend@44'

    make.exe: *** [alphablendtest.exe] Error 1

    Execution terminated

    Oh and by the way you don't have to tell that I shouldn't keep my projects and Dev in Program Files, I know, I'm to lazy to reinstall Dev and MOSt of my projects I keep in C:\MYCPPSTUFF =)

     
    • pronecracker

      pronecracker - 2007-04-09

      I hope you enjoyed this thread:| ;p

       
    • pronecracker

      pronecracker - 2007-04-07

      Oh sorry, never mind. I forgot to link libmsimg32.a, now it works, although I haven't got the function working, but that's something else.

       
    • pronecracker

      pronecracker - 2007-04-07

      I seem to be blindly making and solving problems on the fly this evening =) The function worked, but I drew a bitmap at half transparency over the same bitmap drawn without transparency:-S

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.