cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Problem with putting text in window
Problem with putting text in window
Sep 23, 2012 at 8:42am UTC
GS398
(2)
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
Sep 23, 2012 at 11:38am UTC
GS398
(2)
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.