TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTOPHER BUTLER
from: KEVIN CAMPBELL
date: 1997-06-08 20:55:00
subject: Graphics routines

 > Hi All!
 > Could someone tell me whats wrong with this code?
 > This is my first try at creating a class, so I just used the graphics
 > functions I was used to using in QB, converted to a C++ class...
 > Unfortunatly, it doesn't work.. on mine, the screen is cleared to red,
 > then there's a GPF...
put the GraphicsScreen object outside main as a global variable. You might 
also want getch(); to pause. Your current code works, and changes graphics 
modes, but then you try and delete a stack based resource and mess up the 
heap.
- Kev
Kevin Campbell
Sysop of Deimos BBS
E-Mail: Sysop@Deimos.unmanned.co.uk
--- FMail/386 1.02
---------------
* Origin: Mail shipped from Deimos Spaceport (2:259/17)

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™.