Microsoft KB Archive/59972

= Mac Hyp: Getting a Macintosh Resource from a Message =

Article ID: 59972

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Mail Software Development Kit (SDK) for HyperCard 2.0
 * Microsoft Mail Software Development Kit 3.0

-



This article was previously published under Q59972



SUMMARY
getMacResource retrieves the Macintosh resource with the given type, name, and ID and returns it in a handle. The syntax for getMacResource is as follows: msmail(getMacResource, type, name, ID)=>handle Either the name or ID parameters may be empty, but not both. Here are some examples of legitimate parameters: put msmail(getMacResource, &quot;snd &quot;,&quot;&quot;,&quot;Simple Beep&quot;) into hndl put msmail(getMacResource, &quot;PICT&quot;, 4007) into hndl getMacResource looks first in the resource fork of the current stack, then in HyperCard's resources, and finally in the System resources. The name and ID of a resource can be found with the ResEdit program from Apple. Note that if the ID is empty, a placeholder (&quot;&quot;) must be used.

When you are done using the handle, you should dispose of its contents with disposeHandle.

The &quot;type&quot; parameter lets users specify the 4-character type of the resource to be added, such as &quot;ICON&quot;, &quot;CODE&quot;, or &quot;snd &quot;.

This information is taken from the &quot;Microsoft Mail HyperCard Interface Documentation.&quot;

Keywords: KB59972

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.