home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!chriswd
- From: chriswd@cco.caltech.edu (Chris Michael Ward)
- Newsgroups: comp.sys.mac.programmer
- Subject: Resource help?
- Date: 22 Dec 1992 16:58:45 GMT
- Organization: California Institute of Technology, Pasadena
- Lines: 21
- Message-ID: <1h7hg5INNhmr@gap.caltech.edu>
- NNTP-Posting-Host: punisher.caltech.edu
- Summary: I need some help with resources...
-
- I was wondering if someone could help me out. As a newtimer to Macintosh
- programming, I am in the process of learning how to use resources. I'm
- trying to get the data from a simple 'STR#' resource, but it doesn't
- seem to be working correctly.
-
- Should I do something like this:?
-
- aHandle = GetResource ('STR#', RES_ID);
- the_string = (char *) aHandle;
- strncpy (temp_string, the_string, 2);
- num_words = (int) temp_string;
- ... then proceed to get the character data as the_string[x]?
-
- I'm sure I'm probably approaching this problem incorrectly. Any advice
- would be greatly appreciated. (I can't seem to find any more info in
- Inside Macintosh)
-
- Thank you greatly!
-
- - Chris
-
-