initgraph error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abc85
    New Member
    • Mar 2007
    • 1

    initgraph error

    When initializing graphics in c using initgraph,I get an error message using errorcode as "Not enough memory to load drivers". Pls HELP!!!
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    What is initgraph? What is your graphics library? What is your code snippit that is causing the problem? What is your operating system? What is your shell environment? In the future please provide all the necessary information, don't make me ask a hundred questions to try to find out what you are talking about.

    Comment

    • horace1
      Recognized Expert Top Contributor
      • Nov 2006
      • 1510

      #3
      Originally posted by abc85
      When initializing graphics in c using initgraph,I get an error message using errorcode as "Not enough memory to load drivers". Pls HELP!!!
      post you code. It should look something like
      Code:
      int main(void)
      {
          int graphdriver = DETECT, graphmode;                     /* for initgraph */
       
          /* Initialise graphics system  */
          initgraph(&graphdriver, &graphmode, "c:\\tc\\bgi");
          if (graphresult() != grOk)
             {
             printf("initgraph failed: %s\n", grapherrormsg(graphdriver));
             return 1;                                            /* failed, return */
             }

      Comment

      Working...