Thread: Printing Text

  1. #1

    Talking Printing Text


    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

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    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.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  3. #3
    This is how you use textout:

    CDC *pDC;
    int x;
    int y;
    CString strData;

    strData = "Hello World";

    pDC->textOut(x, y, strData);

    This assumes that you are in your Cwd, or CFramewnd Class.

    Hope this helps!

  4. #4
    train spotter
    Join Date
    Aug 2001
    near a computer
    Post some more details.

    Are you using C or C++ or MFC?
    Do you have the HDC?

    Get more specific and we will help.

  5. #5


    Ok, thanks guys, sorry it's been so long since i replied, but thanks, i'll go do some research

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# Printing Problem
    By silverlight001 in forum C# Programming
    Replies: 0
    Last Post: 03-23-2009, 01:13 AM
  2. Reading and printing a file
    By T1m in forum C Programming
    Replies: 1
    Last Post: 01-08-2009, 01:29 PM
  3. Small HTML question
    By Thantos in forum Tech Board
    Replies: 4
    Last Post: 12-29-2003, 12:37 AM
  4. Replies: 1
    Last Post: 07-13-2002, 05:45 PM
  5. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM