Problem with putting text in window

Hi

code worked perfectly until I addded following code:

case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdctest = BeginPaint(hwnd, &ps);
TextOut(hdctest, 20, 20, TEXT("Kilometer:"), 10);
EndPaint(hwnd,&ps);
break;
}

Following text are the errors I get:
[Linker error] undefined reference to `TextOutA@20'
ld returned 1 exit status

After a lot of searching on Google I thought this was the way to just
simply get a text in your window.
Somebody could help me out?

Grtz
GS398
Hi guys

just solved the problem....
I had to change something in the settings of the compiler...
I use Dev-C++ 4.9.9.2 and if you go to Tools ==> Compiler Options
==> Settings ==> Linker ==> Do not create a console window ==> Yes.

That should solve the problem.


Grtz
GS398
Topic archived. No new replies allowed.