"black(flashing vampire)" <quiteblack@gmail.com> wrote in message
news:1135911315.918365.86150@g44g2000cwa.googlegro ups.com...[color=blue]
> hi all~
>
> i just built a cute window with the help of a tutorial, but met some
> problem when try to repaint the window, my callback function is as
> below:
>
-
> LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM
-
> lParam)
-
> {
-
> switch (iMsg)
-
> {
-
> case WM_PAINT:
-
> PAINTSTRUCT ps;
-
> HDC hdc;
-
> hdc = BeginPaint(hwnd, &ps);
-
> TextOut(hdc, 100, 100, "Holla !", 10);
-
> EndPaint(hwnd, &ps);
-
> break;
-
> case WM_DESTROY:
-
> PostQuitMessage(0);
-
> break;
-
> case WM_CLOSE:
-
> DestroyWindow(hwnd);
-
> break;
-
> default:
-
> return DefWindowProc(hwnd, iMsg, wParam, lParam);
-
> }
-
>
-
> return 0;
-
> }
-
>
> when i compile the program it reports an error like this:
> [Linker error] undefined reference to `TextOutA@20'
> i'm with Dev-C++, anyone help me ? tks !!![/color]
try microsoft.public.vc.language Just don't tell them you're using Dev c++