I have such code in windows program:
The code without MoveToEx and LineTo works, but with them it gives those errors:Code:switch (message) { case WM_PAINT: HDC hDC; PAINTSTRUCT ps; hDC=BeginPaint(hwnd, &ps); MoveToEx(hDC, 0, 0, NULL); LineTo(hDC, 50, 50); EndPaint(hwnd, &ps); }
C:\DOCUME~1\ANDRES~1\LOCALS~1\Temp\ccKoaaaa.o(.tex t+0x2b1) In function `Z15WindowProcedureP6HWND__jjl':
[Linker error] undefined reference to `MoveToEx@16'
[Linker error] undefined reference to `LineTo@12'
C:\DOCUME~1\ANDRES~1\LOCALS~1\Temp\ccKoaaaa.o(.tex t+0x2b1) ld returned 1 exit status
I use Dev-C++ Compiler. I have tryed other such graphic functions, but they don't work. Always the same errors. What would be wrong with it?



LinkBack URL
About LinkBacks



