ERROR WHEN USING GRAPHICS IN A PROGRAM

anshul
2012-04-18
2012-09-26
  • anshul
    anshul
    2012-04-18

    HI,

    I DOWNLOADED graphics.h and libbgi FOR ENABLING GRAPHICS IN DEVCPP and ADDED
    THE LINKERS. I CHECKED THAT GRAPHICS WINDOW SHOWS UP AND RUNS PROPERLY WHEN I
    USE A SEPARATE PROGRAM FOR GRAPHICS PORTION. BUT WHEN I ADD THE GRAPHICS CODE
    IN MY ACTUAL CODE , IT THROWS THIS ERROR:

    " DRAWING OPERATION WAS ATTEMPTED WHEN THERE WAS NO CURRENT WINDOW"

    CAN ANYBODY PLEASE HELP ME TO RESOLVE THIS ISSUE?

    THANKS IN ADVANCE