home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!cs.uoregon.edu!nntp.uoregon.edu!eric_gorr@coglab_psych.uoregon.edu
- From: eric_gorr@coglab_psych.uoregon.edu (Eric Gorr)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Answer returing the wrong address of app
- Message-ID: <1992Sep3.180916.7454@nntp.uoregon.edu>
- Date: 3 Sep 92 18:09:16 GMT
- Article-I.D.: nntp.1992Sep3.180916.7454
- Sender: news@nntp.uoregon.edu
- Distribution: usa
- Organization: University of Oregon Network Services
- Lines: 31
-
- Below is some hypertalk code that returns the address of another app of
- mine which is in memory. The address that gets returned is:
-
- Psych Cognitive Lab::Head Modeler2
-
- It's the double colon between Lab and Head that I think is causing the
- error for the code which coverts this address using AECoercePtr.
- AECoercePtr returns the error -1700.
-
-
- Please help...thanx...
-
-
- on SelectProgram
-
- Global progAddress
-
- put empty into progAddress
- answer program "Please select the Head Modeler program" of type
- "HEADep01"
- put it into progAddress
-
- end SelectProgram
-
-
-
- programHandle = paramPtr->params[15];
- HLock( programHandle );
- myErr = AECoercePtr( typeChar, *programHandle, StringLength( paramPtr,
- *programHandle ), 'ADDR', &remoteUserLoc );
- HUnlock( programHandle );
-