Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!han From: han@Apple.COM (Byron Han) Newsgroups: comp.sys.mac.programmer Subject: Re: Communications Toolbox Initialization? Message-ID: <34604@apple.Apple.COM> Date: 8 Sep 89 21:49:26 GMT References: Organization: Apple R&D - Networking & Communications Lines: 45 In article time@oxtrap.UUCP writes: > >I have just recently started coding with the Communication Toolbox. >No where in the documentation do they show the full source for >starting an application, and the initializations needed. I can run my >program, but CMNew() fails. If I run Versaterm, then quit Versaterm, >then run my application, CMNew() succeeds until I reboot, then it fails >again. Does anyone have the list of initializations that are required >and their order? I assume I am not initailizing something. PROCEDURE Initialize; VAR err: OSErr; BEGIN { standard Macintosh Toolbox initialization } err := InitCTBUtilities; err := InitCRM; err := InitCM; { check connection manager initialization result code... } err := InitTM; { check terminal manager initialization result code ... } err := InitFT; { check file transfer manager initalization result code... } { rest of initalization } END; Hope this helps... -- +-----------------------------------------------------------------------------+ | Disclaimer: Apple has no connection with my postings. | +-----------------------------------------------------------------------------+ Byron Han, CommToolbox Scapegoat Macintosh - Catch the Wave! Apple Computer, Inc. ----------------------------------------- 20525 Mariani Ave, MS27Y Internet: han@apple.COM Cupertino, CA 95014 UUCP:{sun,voder,nsc,decwrl}!apple!han ------------------------------------ GENIE:BYRONHAN CompuServe:72167,1664 ATTnet: 408-974-6450 Applelink:HAN1 HAN1@applelink.apple.COM -------------------------------------------------------------------------------