home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / hypercar / 3350 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.2 KB

  1. Path: sparky!uunet!ogicse!cs.uoregon.edu!nntp.uoregon.edu!eric_gorr@coglab_psych.uoregon.edu
  2. From: eric_gorr@coglab_psych.uoregon.edu (Eric Gorr)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Answer returing the wrong address of app
  5. Message-ID: <1992Sep3.180916.7454@nntp.uoregon.edu>
  6. Date: 3 Sep 92 18:09:16 GMT
  7. Article-I.D.: nntp.1992Sep3.180916.7454
  8. Sender: news@nntp.uoregon.edu
  9. Distribution: usa
  10. Organization: University of Oregon Network Services
  11. Lines: 31
  12.  
  13. Below is some hypertalk code that returns the address of another app of
  14. mine which is in memory. The address that gets returned is:
  15.  
  16.     Psych Cognitive Lab::Head Modeler2
  17.  
  18. It's the double colon between Lab and Head that I think is causing the
  19. error for the code which coverts this address using AECoercePtr.
  20. AECoercePtr returns the error -1700.
  21.  
  22.  
  23. Please help...thanx...
  24.  
  25.  
  26. on SelectProgram
  27.   
  28.   Global progAddress
  29.   
  30.   put empty into progAddress
  31.   answer program "Please select the Head Modeler program" of type
  32. "HEADep01"
  33.   put it into progAddress
  34.   
  35. end SelectProgram
  36.  
  37.  
  38.  
  39.     programHandle = paramPtr->params[15];
  40.     HLock( programHandle );
  41.     myErr = AECoercePtr( typeChar, *programHandle, StringLength( paramPtr,
  42.                          *programHandle ), 'ADDR', &remoteUserLoc );
  43.     HUnlock( programHandle );
  44.