> 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)
|