SDL and stdio.h

This is a discussion on SDL and stdio.h within the C Programming forums, part of the General Programming Boards category; Hi I have a pretty good understanding of c programming, with the normal libraries, but recently i have tried to ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    192

    SDL and stdio.h

    Hi

    I have a pretty good understanding of c programming, with the normal libraries, but recently i have tried to start using SDL for some basic graphics. BUt when you use SDL it makes a new window that it 'blits' to. can i get my printf statements etc and SDL to work together or do you have to use completely different commands for printing to the screen shwen using SDL?

    Thanks

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You can't use printf to write to the SDL window. You can have a second "console" window using AllocConsole, or you have to use font drawing functions. Here's a link that describes ONE possible solution:
    http://www.gamedev.net/reference/art...rticle1953.asp

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error: stdio.h: No such file or directory
    By MindLess in forum C Programming
    Replies: 9
    Last Post: 12-20-2007, 08:11 AM
  2. getting error "unable to open include stdio.h
    By coolgal in forum C Programming
    Replies: 18
    Last Post: 12-07-2007, 01:36 AM
  3. stdio.h
    By Vertex34 in forum C Programming
    Replies: 2
    Last Post: 07-12-2004, 11:18 AM
  4. error in -stdio.h __VALIST
    By JaWiB in forum C++ Programming
    Replies: 3
    Last Post: 09-20-2003, 01:22 PM
  5. Modifying stdio.h
    By Spectrum48k in forum C Programming
    Replies: 10
    Last Post: 05-29-2002, 09:30 AM

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