Writing A Dos Shell AkA Win 3.11 Mark 2 :p

This is a discussion on Writing A Dos Shell AkA Win 3.11 Mark 2 :p within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hi, i'm relatively new to C. I'm experianced in Delphi/Kylix an i know some stuff about a few other languages. ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    15

    Wink Writing A Dos Shell AkA Win 3.11 Mark 2 :p

    Hi, i'm relatively new to C. I'm experianced in Delphi/Kylix an i know some stuff about a few other languages. But basically i'm a C n00b. I'm trying to learn how to do graphics in C so i can start to write the basis for a shell. Does any body have ne handy links to tutorials for graphics in C. I'm using a very dated(1989) turbo c 2 compiler. This is because everything else i tried wouldn't compile 16 bit dos apps heh. I'm currently working my way thru the tut's on this site but they all seem to be directed at c++.

    Ne help is greatly appreciated,

    --== Arius Myst ==--

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Try cprogramming.com's tutorial - it's pretty good. If you're talking about making just a regular DOS shell - just use print "C:\\>", of course you'd replace the drive according to different things, and you need need the double / because of escape sequences. Input the command, un put in the System() function.

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    15
    Thnx dude, but what im trying to do is actually a bit more complicated than i made out. I'm fiddling with the idea of writing my own operating system. I've written a bootloader that boots to my own custom prompt e.t.c in asm i jus need to learn some C so i can get a funky lookin gui on the go lol

  4. #4
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Location
    Bangalore, India
    Posts
    345
    You have a lot of functions in the GRAPHICS.H library dealing with graphics in DOS, but they are real slow.

    Look under the section "3D graphics docs..."
    here

  5. #5
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    Wink mm

    First, you need a graphics library:
    http://www.zephyrsoftware.com/
    or you can tryout the SciTech VBE Graphics engine.

    Or, you could join other people on similar projects:
    such as the XBlue:
    http://www.angelfire.com/my/bahairomania/freegui.html

    Have a lot of fun

  6. #6
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    When I'm doing a big project like this, I find that I solve a lot of my problems if I just dive right in and start coding. Start with the OS startup by doing some low-level stuff with BIOS, and then work your way up to C from there. What you can do, if you need plain assembler, but you need to code in C, is compile it, then unassemble it using DEBUG. IOt's one of the recent threads in this froum - I named it DEBUG.cpp just so it would be allowed - but you have to rename it as an exe - it's still in that format.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help with this
    By tyrantil in forum C Programming
    Replies: 18
    Last Post: 01-30-2005, 04:53 PM
  2. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 06:39 AM
  3. Writing to parallel port in Win NT
    By Bazzz in forum Windows Programming
    Replies: 1
    Last Post: 09-16-2002, 10:32 AM
  4. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 07:15 AM

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