TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MATTHEW DUHART
from: JAN BIJSTERBOSCH
date: 1997-08-25 20:28:00
subject: Problem with initgraph

Hello Matthew,
22 Aug 97, MATTHEW DUHART of 1:307/8 wrote to JAVIER KOHEN
[ a lot snipped ]
 MD> Yes. And just last night, I had the program working. Except
 MD> it wan't working correctly. Slow since this is a 386
 MD> computer, but other than that, when it showed the buttons,
 MD> they were off line in 3-D and when you push the button, it
 MD> was also off line in 3-D. It would only show a few keys. If
 MD> you want to see the program, I'll show it to you in a
 MD> message.
If I remember correct, you where trying the calculator example from Robert 
Lafore's 'Object oriented programming in TC++', wasn't it?
Well, I hate to say this, but there's an error ( I don't dare to say typo 
again  ) in the listing in the book. I have had this myself when I first 
started with C++ and this code. You have to recalculate the several window 
coords of the buttons in calc_app.cpp, to let the calculator look like it 
should. If you can't figure it out, tell me, I see if I can find the old 
corrected code thingy I have here somewere...
While on the subject of this book, there's one other hickup in some code on 
page 232. It's an example of a static variable inside a class. The example 
oversees the fact, that a static variable needs to be declared outside of the 
class definition. In this case the line: int foo::count = 0; is missing.
No bad words about the rest of the book though. ;-)
Greetings from sunny Amsterdam,
       Jan
email:bijster@worldonline.nl
http://www.worldonline.nl/~bijster
--- MBM v3.41e
---------------
* Origin: Snuffelaar bij DosBoss West (2:500/121.5122)

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