View Full Version : Writing A Dos Shell AkA Win 3.11 Mark 2 :p

Arius Myst
06-17-2002, 02:36 AM
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 ==--

06-17-2002, 11:18 AM
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.

Arius Myst
06-17-2002, 04:32 PM
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

06-19-2002, 06:06 AM
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 (http://www.algonet.se/~lars_and/download.html)

06-19-2002, 08:45 PM
First, you need a graphics library:
or you can tryout the SciTech VBE Graphics engine.

Or, you could join other people on similar projects:
such as the XBlue:

Have a lot of fun

06-22-2002, 04:45 PM
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.