Obviously you have managed to create a console application - which can very good for lots and lots of purposes. It's not DOS, but a 32 bit text interface you are seeing.
If you don't know anything about windows GUI programming, you have a way to go before developing one yourself.
Find a good book about windows programming, brew some coffee (buy some extra beans ;-) ) and start reading.
Have fun !
/JOlesen