bgi error

This is a discussion on bgi error within the Game Programming forums, part of the General Programming Boards category; Hi Guys I am trying to run a line clipping program but am unable to do so.The output screen keeps ...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    14

    bgi error

    Hi Guys
    I am trying to run a line clipping program but am unable to do so.The output screen keeps showing "bgi error use initgraph".Please help
    Thank you

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Here is some advice:
    • Download MSVC Express Edition from Microsoft.
    • Download the newest OpenGL or Direct3D SDK.
    • Get some books on OpenGL or Direct3D and enjoy.
    • Ditch BGI and the ancient compiler you are using it on.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    14
    No actually this a subject being taught in school so I can't dump it.
    Thank You

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    1,205
    Well you will have to give us more then to be able to help:
    Compiler, code, OS version and so on.

    But if the school teaches you this you might want to either tell them its outdated and was created for DOS, so chances are very big it won't work on windows 7, Vista or even XP, at least not without great struggle. Or look for some other course that doesn't teach completely outdated technology.

  5. #5
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,425

    turbo help

    the turbo c compiler ide u are using comes with a help file that if you care to open will give you code to show you how to initgraph correctly- furthermore there is a demo program you can look at for same thing, whether it will run on a modern pc is another matter,
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

  6. #6
    Registered User
    Join Date
    Feb 2011
    Posts
    14
    I am using OS:Win7.It does not support full screen console so graphics programs don't run properly.Also I am using the initgraph() properly but I think the graph has to initialized in some fixed location?
    Thank You

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,533
    So go and complain loudly to your so-called tutors as to why they're still pushing this old crap on you?

    Pester them for all your tech support questions (you're paying for it), and see how smart they really are trying to get stone-age tools to run on modern operating systems and hardware.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    Registered User
    Join Date
    Feb 2011
    Posts
    14
    Correct me if I am wrong.New technologies evolve from old ones so......I don't agree with our teaching but what to do,I have to cope up.If you guys can please help,I will be really grateful.
    Thank You

  9. #9
    Registered User
    Join Date
    Aug 2003
    Posts
    1,205
    Some problems with that though:
    Yes todays mordern graphics libraries have evolved from old ones, but that does not mean the old ones are in any way relevant. The gap is so big so saying it is still in some way relevant is aking to saying it is relevant for soldiers to learn how to use a muzzle-loaded rifle, because todays rifles evolved out of those. It just is not relevant.

    Even if we wanted to it might not be possible to help. As has been said it is very possible that this technology is so old todays operating systems simple do not support it in any shape or form. And we sure can't help you without seeing any code but I am not sure even that would help. Your best bet would probably be to find some kind of fan-forum for this library (or something similar).

    You don't have to cope with it. Complain, loudly and together with the rest of the students. Talk to the teachers, talk with higher ups at the school and so on. Try to get them to understand, and as Salem said, pester your teachers/professors/tutors with any and all problems you run into. Maybe they will pick up the hints after a while...

  10. #10
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    There is no excuse for any institute of higher learning to use BGI which is a technology that is nearly 20 years old. That is not a learning program that I would shell out money for. Direct3D and OGL are so simple now and so easy to get access to and have so many resources available for them I just cannot fathom why anyone or any professor would ever want to use BGI. You will be extremely lucky if any video cards actually still work with that outdated library. In fact that library was outdated the minute it hit the shelves.

    You would be better served by dropping the class, buying a beginner's book for D3D or OGL and going through it and doing all of the exercises.
    Last edited by VirtualAce; 03-01-2011 at 07:58 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  3. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 12:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21