draw pos, locate function type help

This is a discussion on draw pos, locate function type help within the C++ Programming forums, part of the General Programming Boards category; in m$ vc++ 6.0 i am creating a console app and i want to: * clear the screen and start ...

  1. #1
    NOCLUE
    Guest

    draw pos, locate function type help

    in m$ vc++ 6.0 i am creating a console app and i want to:
    * clear the screen and start from line:0 | char:0
    * use some sort of pixel set command for simple graphics
    * set the position of text on the console screen

    i dont have a clue on how to do any, well for the screen clear i tried including conio.h and using clrscr but my compiler doesnt support this :P can anyone help here plz?
    thanx

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Read the damn FAQ before asking stupid questions you could have answered in seconds if only you had bothered to visit our FAQ.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    NOCLUE
    Guest
    well i think its obvious that ive read the faq;
    as ive tried to use there clrscr conio.h example but it isnt compatible with M$VC++ and the other options except the one about throwing the monitor away dont seem suitable in my case, the only option i can think of is using assembly but thrs gotta be a better way!

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    read it again. Your answers are there
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    NOCLUE
    Guest
    sory i forget to mention i dont want to include the windows header, if i did i could just use set console attributes and stuff, but i want to make it portable to basic dos. (and im under the impression that u cant run it i dos if u include windows.h) i could allways use assembly fuctions like::

    ;Clear Screen
    ;
    Call Cls
    ;
    ;Position 15,20
    ;
    Mov $Ycur,15
    Mov $Xcur,20
    ;
    ;Set Color to 12
    ;
    Mov FgColor,12
    Mov BgColor,
    Call SetAttribute

    but like i said a better way must be around!!!

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    27

    WIN32 programs

    Hi,
    If I'm not mistaken, programs compiled with MSV++6 will not run on "Regular" DOS(ie. DOS 6.22).
    If you want to write programs for DOS try one of the free compilers from Borland. I use Turbo C++ 1.01 and it's ok for what I need it for.
    BTW clrscr() works using that compiler.
    Hope this helps.
    Pappy
    You learn something new everyday.

  7. #7
    NOCLUE
    Guest
    wow i realy didnt know that! i thought that m$vc++ allowed the port to normal dos sighs ohwell, il have to goto borland :P thanx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 09:28 AM
  2. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 07:54 PM
  3. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  4. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  5. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 11:03 AM

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