Thread: screen buffer, cursor position, etc, non-standard console interface usage

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    11

    screen buffer, cursor position, etc, non-standard console interface usage

    I can't figure out the syntax for directly changing a value in the screen buffer for a console application, it's a very weird function that takes a weird argument,

    any suggestions?

    --Cid666
    --Cid666

  2. #2
    >>any suggestions?

    Yes. Tell us what the function is so somebody can help you.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    11
    I don't really know what to use.

    i'm trying to make a constant display with formatted info, display it on the screen and position the cursor wher I want it, maybe, even type stuff and based upon the character in the keyboard's buffer, make the screen do other stuff.

    p.s.
    anyone know how to get direct x to work?
    --Cid666

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    gotoxy() and cout is the closest you get.
    Perhaps you could directly access it in the memory though a pointer if you knew the adress, but I don't...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    11

    The problem is windows always changes schesse.

    Windows never uses the same addresses for anything, they always re-allocate and write unused stuff to the hard drive, there has to be an api call that allows me to write to the display. Ideally i would want to access each pixel individually, and write my own display interface, but i can't because i would have to do that for basically every video card i wanted my program to run on, so i'm stuck using crappy windows Hardware Abstraction Layer interpretation of actual Io.

    Any of u guys game programmers. I'm really into learning how to get direct x to work. I know that it took the guy who made nascar about a month, with four other people, to figure it out, and the windows example code included with the visual studio.net doesn't work, it asks for a debugger or something and i'll be damned if i can find it.
    --Cid666

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console to interface
    By PAragonxd in forum C++ Programming
    Replies: 1
    Last Post: 08-09-2008, 02:35 PM
  2. Program the Console Buffer into FULLSCREEN
    By IrishSlasher in forum Windows Programming
    Replies: 1
    Last Post: 11-06-2002, 03:18 AM
  3. a simple C question...
    By DramaKing in forum C Programming
    Replies: 10
    Last Post: 07-28-2002, 02:04 PM
  4. Clearing the screen in a dos console window...
    By Unregistered in forum C++ Programming
    Replies: 13
    Last Post: 02-15-2002, 04:15 AM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM