| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Problem with initgraph |
-> On (05 Aug 97) MATTHEW DUHART wrote to ALL...
->
-> MD> Hi, I seem to be having !ymany many many errors with Turbo C++.
-> MD> entered a program out of a book, checked it over many times, had
-> MD> people check it over, and compiled it. I always get 1 warning an
-> MD> errors. The errors always have to do with stuff like initgraph,
-> MD> setcolor, lineto, moveto, etc.
->
-> It sounds like you may not be linking in the graphics library. From
-> the command line, you'd use:
->
-> tcc tendril.cpp graphic.lib
->
-> From the Turbo C++ IDE, you have to go through a couple levels of
-> menus to get to one telling it to link in the graphics library.
->
-> [ ... ]
->
-> MD> void main()
-> MD> {
-> MD> int driver, mode;
-> MD> driver = VGA;
-> MD> mode = VGAHI;
->
-> MD> initgraph(&driver, &mode, "\\tc\\bgi");
->
-> This could be another source of a problem. This has to contain the
-> path to the Turbo C++ BGI directory. If you have Turbo C++
-> installed in a different directory, or you run the program from a
-> different disk, you'll need to change this path to point the Turbo
-> C++ BGI files. Later,
-> Jerry.
->
-> ... The Universe is a figment of its own imagination.
->
-> --- PPoint 1.90
Yes, I had forgotten to them. Now that all of the millions of programs
now work! Thanks
--- GOMail v2.0 [94-0605]
---------------
-> * Origin: Point Pointedly Pointless (1:128/166.5)* Origin: The Buzzard's Roost, Pueblo, CO (719) 564-8235 (1:307/8) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.