I tried running the program from this link in Codeblocks- https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=7939&lngWId=3
The program runs but prematurely stops with an error- 'drawing operation was attempted when there was no current window'.
Can anyone suggest a fix for this or any alternative headers for graphics-based operations in C?
(NB:I'm using the default GNU GCC compiler)
You can use:
char driver[] = "";
initgraph(&gdriver, &gmode, driver);
at the start of your program.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.