[comp.sys.mac.programmer] Using both ANSI and MacTraps in a ThinkC program

palvarez@sdcc6.ucsd.edu (Pablo Alvarez) (04/09/91)

 I am a beginning Mac programmer, and I have a program which runs with
the ANSI library, in a text-only, mainframe-like format. I would like to
add some graphics to it, and as far as I can tell, in order to do that I
need to use "real" Mac code, and the MacTraps library. So my questions
are:
	Are there any incompatibilities between the two libraries?
Ideally, I would like to just add a graphics window, and keep all the
input and program functions on the console window.
	
	What problems am I likely to run into while trying to do this?

Thanks for your patience with a beginner



-- 
Pablo R Alvarez (palvarez@ucsd.edu)

Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) (04/09/91)

Pablo Alvarez writes in a message to All

PA>   I am a beginning Mac programmer, and I have a program which 
PA> runs with the ANSI library, in a text-only, mainframe-like format. 
PA> I would like to add some graphics to it, and as far as I can 
PA> tell, in order to do that I need to use "real" Mac code, and 
PA> the MacTraps library. So my questions are

I don't know why you can't switch to using the Think Class Libraries... Of course,
if you insist on using console I/O on a bitmapped machine, be my guest, but
things will look much nicer if you go the other route.


Lawson
 

--  
Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English
Internet: Lawson.English@p88.f15.n300.z1.fidonet.org

rgonzal@elbereth.rutgers.edu (Ralph Gonzalez) (04/10/91)

Dear Pablo,

My Think C Programming Guide is a HyperCard stack which teaches Think
C programming.  Among the code examples built into the stack is one
which does just what you asked for:  it allows the programmer to do
simple graphics yet to keep a "console" window open for
stdio-type text I/O.

The stack just appeared in comp.binaries.mac, and is also available
via anonymous ftp from sumex-aim.stanford.edu (directory:
info-mac/source/c).  I can also send you a copy by disk.  The
shareware fee is $15.

Incidentally, the stack also comes with additional (more complicated)
libraries of Think C/C++ source for 3D wireframe graphics and for
experimenting with a simple text-only user interface management
system.

Ralph Gonzalez
(rgonzal@chowder.rutgers.edu)