[comp.sys.mac.comm] ? Using the Comm. Toolbox with THINK C ?@

astor@dev8j.mdcbbs.com (08/02/90)

This question has probably been asked many times before, but unfortunately
I was never looking for the answer until now.

Has anyone programmed an application for the Communications Toolbox
using THINK C?  If so, what did you do for any include files and
definitions of the CTB traps?  Anything else I should know?

The question may be a bit premature, but I just got a copy of the
Comm. Toolbox, basic set, and example source, and it all looks
completely MPW based.  I haven't tried to coerce it into working
under THINK C yet.

Thanks in advance, email preferred.  Will post summary.
-- 
  ===============================================================
 |    Andy Astor            |   Voice:     (714) 952-5836        |
 |    McDonnell Douglas M&E |   UUCP:     uunet!mdcbbs!astor     |
 |    Cypress, CA  90630    |   Internet: astor@mdcbbs.com       |
  ===============================================================

astor@dev8j.mdcbbs.com (08/09/90)

> ...
> Has anyone programmed an application for the Communications Toolbox
> using THINK C?  If so, what did you do for any include files and
> definitions of the CTB traps?  Anything else I should know?
> ...

Thanks to the many people who responded to the above request.  It
is indeed possible to use the Communications Toolbox with THINK C.

To start with, you need to convert the CommToolBox.o file supplied
with CTB to a THINK C project using the oConv utility provided
with THINK C.  You also need to use a .v file to get the right
case sensitivity for the converted project.

Next, you can either edit the supplied include files, removing the
// style comments, the const parameters, and a few other things, or
if you have access to the developer CD series, you can take:
	CommResources.h, Connections.h, CRMSerialDevices.h
	CTBUtilities.h, FileTransfers.h, and Terminals.h
from the THINK C Interfaces folder.

So far, everthing is working like a charm.
-- 
  ===============================================================
 |    Andy Astor            |   Voice:     (714) 952-5836        |
 |    McDonnell Douglas M&E |   UUCP:     uunet!mdcbbs!astor     |
 |    Cypress, CA  90630    |   Internet: astor@mdcbbs.com       |
  ===============================================================