Printing Text

This is a discussion on Printing Text within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm new to windows prgramming. And i was wondering if somebody could explain how the TextOut function is set ...

  1. #1
    Unregistered
    Guest

    Talking 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

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    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 :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Unregistered
    Guest
    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!

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    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.

  5. #5
    Unregistered
    Guest

    cool

    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, 02: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, 06: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, 10:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21