Thread: TextOut()

  1. #1
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052

    TextOut()

    Is there another version of TextOut() which concerns integers instead of strings?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Rarely use that kind of call, but I'm not aware of any. Use sprintf() to write your integers into a string, you'll get better formatting possibilities.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    If it's a Win32 function you're after, use wsprintf (sprintf is from the C runtime library), or you could use FormatMessage in some way (don't ask me how )

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If you use MFC, try

    CString::Format().

    It can be used like printf........

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. TextOut() flickering
    By Xterria in forum Game Programming
    Replies: 6
    Last Post: 01-22-2004, 09:55 PM
  2. TextOut() Questions
    By Dipset in forum Windows Programming
    Replies: 2
    Last Post: 07-05-2003, 11:38 AM
  3. A small problem with TextOut()
    By Devil Panther in forum Windows Programming
    Replies: 4
    Last Post: 06-28-2003, 01:15 AM
  4. print TextOut
    By andrewjf9 in forum Windows Programming
    Replies: 2
    Last Post: 11-21-2002, 11:36 PM
  5. TextOut problem
    By Chimpsag in forum Windows Programming
    Replies: 1
    Last Post: 09-14-2002, 12:02 PM