Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Setting 1024x768 resilution through C++

Setting 1024x768 resilution through C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sakssp
    wrote on last edited by
    #1

    How to set 1024x768 display resolution using C++ on MS-DOS?

    P T 2 Replies Last reply
    0
    • S sakssp

      How to set 1024x768 display resolution using C++ on MS-DOS?

      P Offline
      P Offline
      PS Codeproj
      wrote on last edited by
      #2

      "ChangeDisplaySettings" API can be used to change the settings of the default display device to the specified graphics mode.

      Thanks & Rgds, Sri..

      S 1 Reply Last reply
      0
      • P PS Codeproj

        "ChangeDisplaySettings" API can be used to change the settings of the default display device to the specified graphics mode.

        Thanks & Rgds, Sri..

        S Offline
        S Offline
        sakssp
        wrote on last edited by
        #3

        What you have suggested can be sone using VC++. We are working in C graphics on Dos operating system.

        N D 2 Replies Last reply
        0
        • S sakssp

          What you have suggested can be sone using VC++. We are working in C graphics on Dos operating system.

          N Offline
          N Offline
          Naveen
          wrote on last edited by
          #4

          And what compiler do you use?

          nave

          S 1 Reply Last reply
          0
          • N Naveen

            And what compiler do you use?

            nave

            S Offline
            S Offline
            sakssp
            wrote on last edited by
            #5

            We are using TurboC++

            N 1 Reply Last reply
            0
            • S sakssp

              We are using TurboC++

              N Offline
              N Offline
              Naveen
              wrote on last edited by
              #6

              sakssp wrote:

              We are using TurboC++

              Ops, I have only a little experience working in turbo c graphic. I guess you might be using the initgraph() to intialize the graphic screen isn't it? At the time when I worked in TC++, the graphic driver that came with the TC allowed me to set only a maximum 640X480 resolution. I think now they will be providing some new drivers. Get it and copy it to your TC\BGI folder also specify this file in the initgraph function.

              nave

              S 1 Reply Last reply
              0
              • N Naveen

                sakssp wrote:

                We are using TurboC++

                Ops, I have only a little experience working in turbo c graphic. I guess you might be using the initgraph() to intialize the graphic screen isn't it? At the time when I worked in TC++, the graphic driver that came with the TC allowed me to set only a maximum 640X480 resolution. I think now they will be providing some new drivers. Get it and copy it to your TC\BGI folder also specify this file in the initgraph function.

                nave

                S Offline
                S Offline
                sakssp
                wrote on last edited by
                #7

                Thanx

                1 Reply Last reply
                0
                • S sakssp

                  What you have suggested can be sone using VC++. We are working in C graphics on Dos operating system.

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  sakssp wrote:

                  We are working in C graphics on Dos operating system.

                  Then why did you ask a "through C++" question in the VC++ forum? :rolleyes:


                  "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                  "Judge not by the eye but by the heart." - Native American Proverb

                  1 Reply Last reply
                  0
                  • S sakssp

                    How to set 1024x768 display resolution using C++ on MS-DOS?

                    T Offline
                    T Offline
                    ThatsAlok
                    wrote on last edited by
                    #9

                    sakssp wrote:

                    How to set 1024x768 display resolution using C++ on MS-DOS?

                    try mode 13h... or it's better you shift to Windowsprogramming.. graphics programming is pretty much easier in windows programming..

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    cheers, Alok Gupta Global Interface Table: An Easy Way to Marshal an Interface Pointer[new] VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups