Menu

Still need some DevCPP help

2003-02-10
2012-09-26
  • Nobody/Anonymous

    im in the process of learning CPP, and all the examples from this class (we use a textbook on a cd) are compiled with Turbo CPP IDE. Could someone plz help me convert this program so it works with DevCPP?

    #include "GFX320.H"
    void main()
    {  
    GFX320 G;  
    G.PutPixel(120,80); 
    G.PutPixel(200,80);  
    G.PutPixel(120,120);  
    G.PutPixel(200,120);  
    G.PutPixel(MIDX,MIDY);  
    G.Stop();
    }

    Thanks alot!
    -em

     
    • Curtis Sutter

      Curtis Sutter - 2003-02-10

      Use the console GDI for those functions.  It is found under 'Other' when creating a new project.  If it is not there, then you will ned to get it using vUpdate.  Keep in mind that there are 2 versions, on for gcc 3.2 and one for 2.95.  Please get the right one.

      Curtis
      P.S.  A really good site for help with that library is fopund at http://www.cs.colorado.edu/~main/bgi/doc/  some eg's need to have graphics.h replaced with winbgim.h to work though.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.