I am trying to get this code to work but get an error message. This draws an X Y axis but I would also like to add some text
HDC hDC = GetDC(hwndDlg);
//draw x-axis
MoveToEx(hDC,0,240,NULL); //start of line x y
LineTo(hDC,240,240); //finish of line x y
//draw y-axis
MoveToEx(hDC,10,50,NULL); //start of line x y
LineTo(hDC,10,250); //finish of line x y
//origin
TextOut(hDC, 4,245,L"O",1);
It works fine until I add the last line TextOut(hDC, 4,245,L"O",1);
And here is the error message when I Build:
POLINK: error: Unresolved external symbol 'TextOutW'.
POLINK: fatal error: 1 unresolved external(s).
Can somebody please explain/suggest another way of writting text.
Thank you
Tony