glenn@huxley.huxley.bitstream.com (Glenn P. Parker) (02/21/91)
In article <1991Feb21.001218.2897@vax5.cit.cornell.edu> a5uy@vax5.cit.cornell.edu writes: > I've done a lot of programming on other platforms but never on the Mac. > I need to put a fairly simple graphics application together in a hurry > and find myself trying to learn C++ in the process so I can use the class > library included with THINK C. Suggestions on good reference/tutorial > books would be greatly appreciated! Just a slight warning before you get too far: THINK C is not C++. The product comes with a language reference manual that explains its object-oriented extensions, and that's probably the best place to start. If you really learn C++, you will be frustrated by THINK C's lack of support for basic things like constructors. > Here's a first obviously basic question...but a good answer would clear > up all sorts of fog... All the sample progs have a main() that looks like > this: > > void main(void) > $ > gApplication = new(CPedestalApp); /* XXX Create and intialize In that code: new(CPedestalApp) is THINK C's version of what would be: new CPedestalApp in C++. You'll have to take it from there, although I believe THINK C also has a reference for its class library (of which CPedestalApp is a member). You might want to look for a product called "AppMaker" from Bauer Software (sp?) that generates skeleton code for an application based on a graphical prototype you design. I'm not a regular THINK C user (so I could have some details incorrect), nor do I have any relation with the companies mentioned. -- Glenn P. Parker glenn@bitstream.com Bitstream, Inc. uunet!huxley!glenn 215 First Street BIX: parker Cambridge, MA 02142-1270