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. HELP NEEDED FOR GRAPHICS LIBRARY!!!

HELP NEEDED FOR GRAPHICS LIBRARY!!!

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelptutorial
11 Posts 4 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 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

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

    What do you want this library to do ? What form does your project take (MFC/Win32/ATL/etc ) ? GDI is there as standard, GDI+ requires you to install the platform SDK and distribute a DLL, it also does not work with Windows 95. You need GDI+ or an external library like CXImage to load and save images, but other than that I can't help unless you provide more info on what it is you need. 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

      What do you want this library to do ? What form does your project take (MFC/Win32/ATL/etc ) ? GDI is there as standard, GDI+ requires you to install the platform SDK and distribute a DLL, it also does not work with Windows 95. You need GDI+ or an external library like CXImage to load and save images, but other than that I can't help unless you provide more info on what it is you need. 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
      #3

      thanks for replying! i want to draw boxes with my own dimensions and maybe something like give the boxes a depression feel when the options entered from the key board.

      J 2 Replies Last reply
      0
      • J Janlim

        thanks for replying! i want to draw boxes with my own dimensions and maybe something like give the boxes a depression feel when the options entered from the key board.

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

        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; }

        1 Reply Last reply
        0
        • J Janlim

          thanks for replying! i want to draw boxes with my own dimensions and maybe something like give the boxes a depression feel when the options entered from the key board.

          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; } and i am executing the program in dos mode.

          C 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; } and i am executing the program in dos mode.

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

            A quick search of MSDN confirmed what I was pretty sure of - you're using functionality provided by your prior compiler. VC is not going to compile this code, and to be honest I have no idea how to draw boxes and so on in DOS mode. Why does your program have to be a DOS program ? How old is it ? 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 1 Reply Last reply
            0
            • C Christian Graus

              A quick search of MSDN confirmed what I was pretty sure of - you're using functionality provided by your prior compiler. VC is not going to compile this code, and to be honest I have no idea how to draw boxes and so on in DOS mode. Why does your program have to be a DOS program ? How old is it ? 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
              #7

              honestly, using this VC, it was implemented by my institue and the C language is in Windows u know like a browser kind and the program is executed in dos.......it's always in dos mode i suppose, but i know we can execute the program in windows mode but i neednt go to that yet for my project. Jan.

              M 1 Reply Last reply
              0
              • J Janlim

                honestly, using this VC, it was implemented by my institue and the C language is in Windows u know like a browser kind and the program is executed in dos.......it's always in dos mode i suppose, but i know we can execute the program in windows mode but i neednt go to that yet for my project. Jan.

                M Offline
                M Offline
                Michael P Butler
                wrote on last edited by
                #8

                Is this a dos program or a console application. What version of VC are you using? If it is Version 2 or greater I'd say you had a console application. Or is it using some kind of EasyWin library? Michael :-)

                1 Reply Last reply
                0
                • C Christian Graus

                  What do you want this library to do ? What form does your project take (MFC/Win32/ATL/etc ) ? GDI is there as standard, GDI+ requires you to install the platform SDK and distribute a DLL, it also does not work with Windows 95. You need GDI+ or an external library like CXImage to load and save images, but other than that I can't help unless you provide more info on what it is you need. 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
                  #9

                  it's in Win32 console application

                  M 1 Reply Last reply
                  0
                  • J Janlim

                    it's in Win32 console application

                    M Offline
                    M Offline
                    Michael P Butler
                    wrote on last edited by
                    #10

                    This is the only console/graphic library article I'm aware of. http://support.microsoft.com/support/kb/articles/Q104/0/94.asp Hope it helps, Michael :-)

                    M 1 Reply Last reply
                    0
                    • M Michael P Butler

                      This is the only console/graphic library article I'm aware of. http://support.microsoft.com/support/kb/articles/Q104/0/94.asp Hope it helps, Michael :-)

                      M Offline
                      M Offline
                      Mike Nordell
                      wrote on last edited by
                      #11

                      Just to add another lib: PDCurses is a free curses library (console "graphics", and windows...) that also works for Win32.

                      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