TextOut()

This is a discussion on TextOut() within the Windows Programming forums, part of the Platform Specific Boards category; Is there another version of TextOut() which concerns integers instead of strings?...

  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,831
    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,261
    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,789
    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, 08: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, 10:36 PM
  5. TextOut problem
    By Chimpsag in forum Windows Programming
    Replies: 1
    Last Post: 09-14-2002, 12:02 PM

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