Results 1 to 11 of 11

Thread: Printing text to the same part of the screen

  1. #1

    Thread Starter
    Addicted Member Cuallito's Avatar
    Join Date
    Apr 2001
    Location
    You know that chest that you could never get opened? If you ever do, I'm there.
    Posts
    136

    Printing text to the same part of the screen

    How can I print text to the screen (DOS console) and have replace the old text?
    BTW, Thanks for all your help

    Member of the anti-gay cross-dressing trans-species wolves alliance.

  2. #2
    #include <conio.h> and then use the gotoxy() function.

  3. #3
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    that will only work if you are using Borland C++ compiler. If that is VC++ then there is no graphics library for you..
    Baaaaaaaaah

  4. #4

    Thread Starter
    Addicted Member Cuallito's Avatar
    Join Date
    Apr 2001
    Location
    You know that chest that you could never get opened? If you ever do, I'm there.
    Posts
    136
    could that function be under different name in VC++ ? Whenever I try to use it, it says it's undefined.
    BTW, Thanks for all your help

    Member of the anti-gay cross-dressing trans-species wolves alliance.

  5. #5

    Thread Starter
    Addicted Member Cuallito's Avatar
    Join Date
    Apr 2001
    Location
    You know that chest that you could never get opened? If you ever do, I'm there.
    Posts
    136
    SO there's no way to do it
    BTW, Thanks for all your help

    Member of the anti-gay cross-dressing trans-species wolves alliance.

  6. #6
    Originally posted by abdul
    that will only work if you are using Borland C++ compiler. If that is VC++ then there is no graphics library for you..
    Call me stupid, but what if I uploaded the .h and other dependencies?

  7. #7
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    No, there is no other graphics library in VC++ but you can use a graphics library called "Algero"(I can't spell in right)

    It comes with a free compiler. I can remember the name of that compiler right now..sorry. I have not even tried using that but lot of people say that it is great graphics library for people not using BC++.

    Maybe furby know more about that free compiler and about that graphics library
    Baaaaaaaaah

  8. #8
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    ooops..you answered first. I have asked this question before but I was not quite complete answer. Somebody said (I think Parskie) that Algero() was also good graphics library for VC++
    Baaaaaaaaah

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    filburt1: I'm not sure if you can use BC++ libraries in VC++

    The compiler is called DJGPP, and is a very good 32-bit DOS protected mode compiler. Programs made with this compiler will run under DOS and Win9x, but not NT/2000.
    See http://www.brainchilddesign.com for a game made with this compiler (Jump'n'Bump, freeware, very cool).
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  10. #10
    Lively Member
    Join Date
    Dec 2000
    Location
    Indiana
    Posts
    73

    Assembly?

    How about ASM?

  11. #11
    jim mcnamara
    Guest
    I think the console behaves as an ansi-compliant vt screen.
    An escape sequence that conforms to those standards
    is:
    escape [ row ; col H - (no spaces) escape is char esc = 27;

    positions the cursor to row & col. Works for DOS screens and is the gotoxy code for Turbo C.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width