Problems on running graph with c

  • Thread starter Thread starter kthouz
  • Start date Start date
  • Tags Tags
    Graph Running
Click For Summary
SUMMARY

The discussion centers on a BGI Error encountered while running a Turbo C program that utilizes graphics on a VISTA Premium system. The error message "BGI Error: graphics not initialized (use 'initgraph')" indicates that the graphics system has not been properly initialized. To resolve this issue, users must ensure that the 'initgraph()' function is called early in the program to set up the graphics environment correctly. This solution is essential for successful execution of graphics-related code in Turbo C.

PREREQUISITES
  • Understanding of Turbo C programming environment
  • Familiarity with BGI (Borland Graphics Interface)
  • Knowledge of C programming syntax and structure
  • Basic troubleshooting skills for programming errors
NEXT STEPS
  • Research the proper usage of the 'initgraph()' function in Turbo C
  • Explore common BGI errors and their solutions
  • Learn about graphics programming in Turbo C
  • Investigate alternative graphics libraries for modern C programming
USEFUL FOR

Programmers using Turbo C, students learning C programming, and anyone troubleshooting graphics initialization issues in legacy systems.

kthouz
Messages
188
Reaction score
0
Hi!
I am using a a VISTA Premium system. When i write program containing graphs with turbo and i try to run it a message appears on the screen as " BGI Error: graphics not initialized (use 'initgraph')" .
So can somebody tell me what's wrong with my system. Do i have to change it or i have to install something else,... please help me!
 
Technology news on Phys.org
You might want to put the statement initgraph() somewhere near the start?
 

Similar threads

  • · Replies 34 ·
2
Replies
34
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
55
Views
7K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
11K
  • · Replies 19 ·
Replies
19
Views
6K
  • · Replies 6 ·
Replies
6
Views
3K