DOS GUI or graphic programming using C

This is a discussion on DOS GUI or graphic programming using C within the C Programming forums, part of the General Programming Boards category; hi... anyone know how to create to old DOS GUI or graphic using C and c++ programming..? is there any ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    39

    Question DOS GUI or graphic programming using C

    hi...

    anyone know how to create to old DOS GUI or graphic using C and c++ programming..? is there any library or template?

    Thanks

  2. #2
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    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.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    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.

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    39
    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.

  5. #5
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,169
    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.

  6. #6
    Registered User fischerandom's Avatar
    Join Date
    Aug 2005
    Location
    Stockholm
    Posts
    71
    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/

  7. #7
    Registered User
    Join Date
    Jul 2005
    Posts
    39
    gee is there any standardized template or library that can be use to generate those DOS GUI or graphics?

    Thanks

  8. #8
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    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.

  9. #9
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,169
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Gui Programme does'nt Compiles from DOS
    By Shadowhunt in forum C++ Programming
    Replies: 1
    Last Post: 06-06-2003, 08:05 AM
  2. Simple C++ GUI programme does'nt run from dos
    By Shadowhunt in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 05:30 AM
  3. DOS / Linux Console based GUI?
    By mart_man00 in forum C Programming
    Replies: 3
    Last Post: 09-14-2002, 12:46 AM
  4. Do you still need a graphic card if you're just using something like dos?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 03-26-2002, 11:09 AM
  5. DOS graphic viewer
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 02-24-2002, 03:00 AM

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