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. The Lounge
  3. HELP!

HELP!

Scheduled Pinned Locked Moved The Lounge
graphicshelptutorial
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.
  • J Offline
    J Offline
    Janlim
    wrote on last edited by
    #1

    i'm in the midst of a mini project and i would like to know the library for graphics for Visual C. library as like example: #include is for the standard input and output. I would like to those who know to help me as i'm desperate! Thank you! :confused: Jan

    R 1 Reply Last reply
    0
    • J Janlim

      i'm in the midst of a mini project and i would like to know the library for graphics for Visual C. library as like example: #include is for the standard input and output. I would like to those who know to help me as i'm desperate! Thank you! :confused: Jan

      R Offline
      R Offline
      Ray Hayes
      wrote on last edited by
      #2

      Jan, you'd have to be a little more specific. What type of graphics are you wanting? GDI - #include or #include GDIPlus - #include But then there is also: DirectX, OpenGL and a million and one other libraries out there. Regards, Ray

      J 1 Reply Last reply
      0
      • R Ray Hayes

        Jan, you'd have to be a little more specific. What type of graphics are you wanting? GDI - #include or #include GDIPlus - #include But then there is also: DirectX, OpenGL and a million and one other libraries out there. Regards, Ray

        J Offline
        J Offline
        Janlim
        wrote on last edited by
        #3

        thanks for replying......... hmm......actually i have no idea, i want to implement say boxes and drawing pics and i'm using Visual C++, when i was using Borland C++ the library was #include graphics.h but now it isnt applicable! :confused: Jan

        C 1 Reply Last reply
        0
        • J Janlim

          thanks for replying......... hmm......actually i have no idea, i want to implement say boxes and drawing pics and i'm using Visual C++, when i was using Borland C++ the library was #include graphics.h but now it isnt applicable! :confused: Jan

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

          Didn't see you'd posted this here as well. The Visual C++ forum is the only correct place for this question, but if you have a Win32 or MFC project, you should find all the GDI functions are there for you. BTW I dunno what you were trying to include because when you put anything between < and >, it gets removed from the post and interpreted as an HTML tag. Use an ampersand and lt or gt to put < or > into your posts. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

          J 2 Replies Last reply
          0
          • C Christian Graus

            Didn't see you'd posted this here as well. The Visual C++ forum is the only correct place for this question, but if you have a Win32 or MFC project, you should find all the GDI functions are there for you. BTW I dunno what you were trying to include because when you put anything between < and >, it gets removed from the post and interpreted as an HTML tag. Use an ampersand and lt or gt to put < or > into your posts. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

            J Offline
            J Offline
            Janlim
            wrote on last edited by
            #5

            the function is something like that: void draw_menu(char na[]) { settextjustify(0,0); setcolor(LIGHTGREEN); //{ settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(180,70,"Airlines"); //top inrroduction text settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(280,440,"Information"); //} setcolor(15);//border rectangle(0,0,639,479); BOX(55,167,291,223,0,na[0],14,1,7,12); //display schedule function box BOX(55,247,291,303,0,na[1],2,1,7,15); //display reserve function box BOX(55,327,291,383,0,na[2],15,1,7,13); //display available function box BOX(353,167,589,223,0,na[3],4,1,7,10); //display cancel function box BOX(353,247,589,303,0,na[4],1,1,7,14); //display list function box BOX(353,327,589,383,0,na[5],15,1,7,7); //display quit and save function box return; }

            C N 2 Replies Last reply
            0
            • C Christian Graus

              Didn't see you'd posted this here as well. The Visual C++ forum is the only correct place for this question, but if you have a Win32 or MFC project, you should find all the GDI functions are there for you. BTW I dunno what you were trying to include because when you put anything between < and >, it gets removed from the post and interpreted as an HTML tag. Use an ampersand and lt or gt to put < or > into your posts. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

              J Offline
              J Offline
              Janlim
              wrote on last edited by
              #6

              and when the program is being executed, it's in dos mode.

              B 1 Reply Last reply
              0
              • J Janlim

                the function is something like that: void draw_menu(char na[]) { settextjustify(0,0); setcolor(LIGHTGREEN); //{ settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(180,70,"Airlines"); //top inrroduction text settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(280,440,"Information"); //} setcolor(15);//border rectangle(0,0,639,479); BOX(55,167,291,223,0,na[0],14,1,7,12); //display schedule function box BOX(55,247,291,303,0,na[1],2,1,7,15); //display reserve function box BOX(55,327,291,383,0,na[2],15,1,7,13); //display available function box BOX(353,167,589,223,0,na[3],4,1,7,10); //display cancel function box BOX(353,247,589,303,0,na[4],1,1,7,14); //display list function box BOX(353,327,589,383,0,na[5],15,1,7,7); //display quit and save function box return; }

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

                I've replied to this in the Visual C forum where it belongs. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

                1 Reply Last reply
                0
                • J Janlim

                  the function is something like that: void draw_menu(char na[]) { settextjustify(0,0); setcolor(LIGHTGREEN); //{ settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(180,70,"Airlines"); //top inrroduction text settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5); outtextxy(280,440,"Information"); //} setcolor(15);//border rectangle(0,0,639,479); BOX(55,167,291,223,0,na[0],14,1,7,12); //display schedule function box BOX(55,247,291,303,0,na[1],2,1,7,15); //display reserve function box BOX(55,327,291,383,0,na[2],15,1,7,13); //display available function box BOX(353,167,589,223,0,na[3],4,1,7,10); //display cancel function box BOX(353,247,589,303,0,na[4],1,1,7,14); //display list function box BOX(353,327,589,383,0,na[5],15,1,7,7); //display quit and save function box return; }

                  N Offline
                  N Offline
                  NormDroid
                  wrote on last edited by
                  #8

                  Look At: DrawText Rectangle FrameRect MoveTo LineTo CreatePen SelectObject SetTextColor SetBkMode CreateSolidBush They are all part of the Windows GDI API and standard to ALL windows plaforms. Try buying Programming Windows 95 by Charles Petzold. Norm Almond Chief Technical Architect FS Walker Hughes Limited

                  1 Reply Last reply
                  0
                  • J Janlim

                    and when the program is being executed, it's in dos mode.

                    B Offline
                    B Offline
                    Brigg Thorp
                    wrote on last edited by
                    #9

                    Microsoft removed all of the DOS mode drawing commands from their library. I tried to port a Borland C++ project years ago and I had to revert back to Microsoft Visual C++ 1.5 (16-bit) in order to do this. The latest Visual Studio doesn't have this stuff. However, you can use the Windows GDI to draw lines and text, although it is a lot more complicated. Brigham W. Thorp Software Engineer Timex Corporation

                    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