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. Managed C++/CLI
  4. c++

c++

Scheduled Pinned Locked Moved Managed C++/CLI
c++tutorial
4 Posts 4 Posters 24 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 change screen resolution to 1024 X 768 in Turbo C++

    C S 2 Replies Last reply
    0
    • S sakssp

      how to change screen resolution to 1024 X 768 in Turbo C++

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      First of all, C++ is a useful header for your question only because it gave me a clue that you were totally in the wrong place. 'Change screen resolution', would have been better. 'Change screen resolution in Turbo C++' would be better still, given that almost everyone on this site is using visual studio. I doubt that Turbo C++ supports Microsoft .NET, which means that the C++/CLI forum is definately the wrong place to ask this question. Try the Visual C++ forum.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      P 1 Reply Last reply
      0
      • C Christian Graus

        First of all, C++ is a useful header for your question only because it gave me a clue that you were totally in the wrong place. 'Change screen resolution', would have been better. 'Change screen resolution in Turbo C++' would be better still, given that almost everyone on this site is using visual studio. I doubt that Turbo C++ supports Microsoft .NET, which means that the C++/CLI forum is definately the wrong place to ask this question. Try the Visual C++ forum.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        Christian Graus wrote:

        C++ is a useful header for your question only because it gave me a clue that you were totally in the wrong place

        :laugh:

        Christian Graus wrote:

        Turbo C++

        Haven't worked with that in a long, long time. I know I still have it around here somewheres :->

        1 Reply Last reply
        0
        • S sakssp

          how to change screen resolution to 1024 X 768 in Turbo C++

          S Offline
          S Offline
          Shivam Pathak 18
          wrote on last edited by
          #4

          You have to include windows.h header. Here is an working example.

          #include
          #include
          #include

          int main() {

          DEVMODE devmode;
          devmode.dmPelsWidth = 1024;
          devmode.dmPelsHeight = 768;
          devmode.dmFields = DM\_PELSWIDTH | DM\_PELSHEIGHT;
          devmode.dmSize = sizeof(DEVMODE);
          
          long result = ChangeDisplaySettings(&devmode, 0);
          
          return 0;
          

          }

          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