Xref: utzoo comp.sys.mac.comm:3097 comp.sys.mac.programmer:23169 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!argosy!jay From: jay@argosy.UUCP (Jay O'Conor) Newsgroups: comp.sys.mac.comm,comp.sys.mac.programmer Subject: Comm Toolbox Confusion. Message-ID: <1062@argosy.UUCP> Date: 31 Mar 91 07:07:53 GMT Sender: news@argosy.UUCP Reply-To: jay@armada.UUCP () Distribution: world Organization: MasPar Computer Corporation, Sunnyvale, CA Lines: 22 I'm writing my first Comm Toolbox program and I've run into some confusion. I'm just using the Connection Manager. To create a Connection Record, I need to call CMNew(), right? Well, to call CMNew, I need to know the procID of a tool - no problem, I'll just call CMChoose to let the user choose a tool, and then I'll have a procID. BUT CMCHOOSE NEEDS A VALID CONNECTION RECORD!!! What am I missing here? This would appear to be something of a catch-22. Initially, I thought CMChoose would create the Connection record for me but this doesn't appear to be the case. CMChoose is declared as CMChoose(VAR hConn:ConnHandle; where:Point; idleProc:ProcPtr):INTEGER. I'm passing the address of where I want the handle returned, the location where I want the dialog, and NIL for the idleProc. Does CMChoose create a Connection Record? If not, how do I call CMNew without knowing a tool name? Thanks Jay O'Conor Maspar Computer Corporation jay@maspar.com