| Код | extern "C" {
//__declspec(dllimport) //__attribute__((stdcall)) BOOL WINAPI AlphaBlend( HDC, int, int, int, int, HDC, int, int, int, int, BLENDFUNCTION); }
...
AlphaBlend ( BackDC, // handle to destination DC x-MAPX-30, // x-coord of upper-left corner x-MAPX-30, // y-coord of upper-left corner 60, // destination width 60, // destination height MemDC, // handle to source DC 0, // x-coord of upper-left corner 0, // y-coord of upper-left corner 60, // source width 60, // source height blendFunction // alpha-blending function );
[Linker error] undefined reference to `AlphaBlend@44'
|
Почему я не использую gdi32 в gcc? Да потому что в wingdi.h AlphaBlend задефайнена, а если раздефайнить, то он ее все равно не находит. А в VC она есть! Но не хочит импортиться Эхротю как extern "C" __cdecl(dllexport) |