hi...
anyone know how to create to old DOS GUI or graphic using C and c++ programming..? is there any library or template?
Thanks
hi...
anyone know how to create to old DOS GUI or graphic using C and c++ programming..? is there any library or template?
Thanks
I know dos.h has the old reg unions and interrupts. int 10 ah = 0 sets the graphic mode to what you specify in al, which you will likely want to be 13 (256 vga). Memory mapped display stuff starts at 0xA0000000.
Are you talking about actual DOS or the windows console? If you're talking aboutt the windows console then you can't do a GUI in it as it dosen't have any graphics support.
windows console != DOS nvm....
eventually I wanted it to done under 16bit mode, which is mainly DOS application......
how about the graphics.h thingy?
Last edited by draggy; 04-27-2006 at 12:47 AM.
You're talking about compiler/machine-specific stuff here. There is no graphics support in standard C, and dos.h and graphics.h are not standard C headers.
Just use google. It's your friend. There's a bazillion tutorials on how to work with graphics in DOS in a variety of different compilers.
Last edited by itsme86; 04-26-2006 at 01:55 PM.
If you understand what you're doing, you're not learning anything.
Don't use obsolete technologies such as DOS. Use the Win32 API, etc.
http://msdn.microsoft.com/library/de...start_page.asp
Study!
Bobby Fischer Live Radio Interviews http://home.att.ne.jp/moon/fischer/
gee is there any standardized template or library that can be use to generate those DOS GUI or graphics?
Thanks
You can use a 3d party library or program, such as QT that is portable among several operating systems -- but it is costs $$$ for commercial use, free for personal use. Or you can use one of the several MS-Windows specific compilers that have GUI libraries, such as MFC and Forms (.NET compilers). Not a bloody thing for plain vanilla MS-DOS which is not obsolete and almost extinct from anyone's computers.
Just to clarify, there's not a "problem" with using OS/machine-specific headers and libraries as long as you understand what it means (including non-portability, etc.)
Also, when asking questions about non-standard programming you need to be much more specific about your environment details since there's so many different variations of non-standard headers and libraries.
The C standard doesn't cover any kind of graphics programming, so you have no choice here but to use non-standard means to accomplish your goal. In these circumstances, or course it's okay to use these non-standard methods, but just, again, be aware that your program won't be very portable and you'll need to be very specific with your questions.
If you understand what you're doing, you're not learning anything.