gotoxy(x,y) does not work

This is a discussion on gotoxy(x,y) does not work within the C Programming forums, part of the General Programming Boards category; Hello, I am using Visual Studio C compiler. 1. I use <dos.h> library in my program and the commands delay(n), ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    1

    gotoxy(x,y) does not work

    Hello,

    I am using Visual Studio C compiler.
    1.
    I use <dos.h> library in my program
    and the commands delay(n), gotoxy(x,y), clrscr().
    I get errors in linker.

    2.
    I use <time.h> library in my program
    and the command sleep(n).
    I get errors in linker.

    I tried to use Borland compiler and got also errors.

    How may I use these commands?

    Thanks for your help
    parpar

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Use Windows functions if you are actually using Windows?
    http://faq.cprogramming.com/cgi-bin/...&id=1043284392
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    For the Borland compiler, you'll need to include the right library file. Conio.h is one of them that has goto(), and clrscr().

    delay() and sleep() are in dos.h.

    Post some code and let's take a look under the hood.

    Adak

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. getline() don't want to work anymore...
    By mikahell in forum C++ Programming
    Replies: 7
    Last Post: 07-31-2006, 11:50 AM
  2. Why don't the tutorials on this site work on my computer?
    By jsrig88 in forum C++ Programming
    Replies: 3
    Last Post: 05-15-2006, 11:39 PM
  3. Problems in getting OpenGL to work
    By zonf in forum C Programming
    Replies: 5
    Last Post: 02-13-2006, 04:48 AM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  5. DLL __cdecl doesnt seem to work?
    By Xei in forum C++ Programming
    Replies: 6
    Last Post: 08-21-2002, 05:36 PM

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