File Code Problems
Quote:Originally posted by WFlemingWhat app are you getting the vRefNum and dirID of? To get the current resource file (by default, the app) I believe that you can just say:
thanks,
In addition I found some code (Technical Q&A FL14) at developer.apple.com that shows how to use the Process Manager to get the vRefNum and dirID of the application. I assume it would be better to plug these into FSpOpenResFile than using 0 for them?
Code:
short oldRes;
oldRes = CurResFile();Quote:Originally posted by jabber
What app are you getting the vRefNum and dirID of? To get the current resource file (by default, the app) I believe that you can just say:
Code:
short oldRes;
oldRes = CurResFile();
true, but CurResFile() doesn't return a FSSpec (or at least i'm unaware how to get one from CurResFile()), which seems to be needed in this case
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Recursively Packing Source Code Into One File? | daveh84 | 15 | 6,657 |
Feb 3, 2010 08:36 PM Last Post: AndyKorth |
|
| Carbon File Code | Muffinking | 5 | 4,347 |
Jun 3, 2002 12:23 AM Last Post: henryj |
|

