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:
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 =)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 =)
I hope you enjoyed this thread:| ;p
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.
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