-
Printing Text
Hi,
I'm new to windows prgramming. And i was wondering if somebody could explain how the TextOut function is set out. That is the right function for printing text, right? So yeah, could someone please explain how i would print text to the screen in a windows program
Thanks in Advance
-
That sort of information is given out for free at msdn. Or even dare I say it read your compilers help-files. If there is anything you dont understand after doing your own preliminary research come back and highlight to us the bit you don't understand and you will get some help.
-
This is how you use textout:
CDC *pDC;
int x;
int y;
CString strData;
strData = "Hello World";
m_pMainWnd->GetWindowDC();
pDC->textOut(x, y, strData);
This assumes that you are in your Cwd, or CFramewnd Class.
Hope this helps!
-
Post some more details.
Are you using C or C++ or MFC?
Do you have the HDC?
ect...
Get more specific and we will help.
-
cool
Ok, thanks guys, sorry it's been so long since i replied, but thanks, i'll go do some research