Thread: console graphics

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    113

    console graphics

    in turbo header file for graphics is graphics.h
    I could not find this file in dev c++ compiler.Is it not a standard file or is there any alternative header in this particular compiler

  2. #2
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    I used to use it too.
    It's not a standard one.
    You'll have to go for something like OpenGL???

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Use the package manager to download LibSDL.
    Then look around www.libsdl.org for tutorials and examples.

  4. #4
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    It might be free, it might not, not sure anymore..

    but search for Borland C++'s Turbo compiler...

    It is included there :d.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  5. #5
    Registered User
    Join Date
    Aug 2005
    Posts
    113
    i'm alredy having turbo c++.Just I wanted to use ANSI specification.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > i'm alredy having turbo c++.Just I wanted to use ANSI specification.
    There is no graphics in ANSI-C
    Which means whatever graphics you do have is specific in some way to the compiler and OS you're using.
    Which also means if you change OS/Compiler, then you may be looking for another graphics library.

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    It might be free, it might not, not sure anymore..

    but search for Borland C++'s Turbo compiler...

    It is included there :d.
    Version 2.0 is free.

    But you can get another free compiler in the form of Dev-C++, which is 1e1000 times better.

    Dev-C++ works with the SDL.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #8
    Registered User
    Join Date
    Jul 2005
    Posts
    69
    You might have a look at: WinBGIm. It kind of leads you to think that you might be doing graphics in a Windows Console but really it's a GUI window that simulates the old Borland stuff.

    If you take the file from the first link and unzip it, you have to place a few header files in DevC++ include folder and allow conio.h to overwrite. Then there's a couple of .a files to place in the lib folder.

    I have successfully built and ran the Borland "bgidemo", something I haven't done since the early 90's. In short, I started a new console project in DevC++, Added -lbgi and -lgui32 to the linker options, and changed the target type to Win32 GUI.

  9. #9
    Registered User
    Join Date
    Aug 2005
    Posts
    113
    Code:
     Dev-C++, which is 1e1000 times better.
    Why it takes so long time to compile in dev c++

  10. #10
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I don't know. Perhaps it performs some optimizations. Check the resulting executable size. Or perhaps (since it's a Windows program) it's just more compilicated for Dev-C++ to compile.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  11. #11
    Registered User
    Join Date
    Aug 2005
    Posts
    113
    Nope,it's the reverse case
    On executing following program
    Code:
    int main()
    {
    return(0);
    }
    Code:
    Result                    Size of exe file                 Time taken to compile
    Turbo C++3             4.92KB                                   less than a second                                    
    Dev 4.9.9.2               15KB                                     4 seconds(approx)

  12. #12
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    1. dev-c++ probably implements the C++ standard a lot better than that old fossil
    2. dev-c++ probably diagnoses a lot more errors than that old fossil

  13. #13
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    That old crap probably not even creates a Windows Console Subsystem executable, but a pure DOS executable.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do i put a graphics - console application
    By hero_bash in forum C++ Programming
    Replies: 10
    Last Post: 06-12-2006, 05:03 PM
  2. Graphics in the console (for real)
    By harryP in forum C++ Programming
    Replies: 11
    Last Post: 10-16-2003, 04:54 PM
  3. Console graphics library (again)
    By harryP in forum C++ Programming
    Replies: 4
    Last Post: 08-23-2003, 10:24 AM
  4. graphics in c/c++ console apps
    By anthonye in forum C Programming
    Replies: 2
    Last Post: 06-20-2002, 05:39 AM
  5. console graphics??
    By kormofi in forum C++ Programming
    Replies: 1
    Last Post: 06-13-2002, 04:37 AM