Thread: clrscr()

  1. #1
    Registered User
    Join Date
    May 2008


    I couldn't use "clrscr()" in Microsoft Visual c++ 6.0 why?? I use it successfully in Borland C++ .....

  2. #2
    Registered User
    Join Date
    Sep 2006
    Because a bunch of pin heads decided that conio.h was not device independent enough, so that file has been deprecated, and isn't part of MS Visual 6.

    You can use the Windows API to do the same job, however. They capitalize the first letter and oh, what's the name? Clrscr() I believe.

    If you can't find it in your help section, post back and I'll look it up.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Sep 2006
    There is a one word API command in Windows that does this, as well. It's like the old conio.h goto(x, y). You can't use that any more, (BAD function, BAD), but they have Goto(x, y), in the API, instead.

    That's *so* much better!!

    Oh good grief!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. do i need a lib for clrscr()?
    By FingerPrint in forum C++ Programming
    Replies: 2
    Last Post: 08-02-2006, 12:51 PM
  2. clrscr() in microsoft visual c++
    By canliceset in forum C++ Programming
    Replies: 7
    Last Post: 11-18-2004, 02:40 AM
  3. could anyone help me?
    By yahootew3000 in forum C Programming
    Replies: 13
    Last Post: 10-03-2004, 01:17 AM
  4. clrscr(); not clearing the screen
    By Noobie in forum C Programming
    Replies: 8
    Last Post: 05-01-2003, 01:44 PM
  5. clrscr() blues...
    By CodeMonkey in forum Windows Programming
    Replies: 1
    Last Post: 01-17-2002, 03:20 PM