Re: REZ Problems - SysError 0/2
Re: REZ Problems - SysError 0/2
- Subject: Re: REZ Problems - SysError 0/2
- From: Bernard Desgraupes <email@hidden>
- Date: Fri, 26 Jan 2007 12:58:04 +0100
Try replacing your include by
#include <Carbon/Carbon.r>
Bernard
Marc Stibane wrote:
With googling I found several people with the same problem (SysError
0 or 2 when #including) - but if they solved it, they either posted
no solution or the solution they described won't work for me.
I am writing printer driver plugins, and want to share as much code
and resources as possible with (gasp) MacOS 9.
(Background: japanese printer fonts cost a fortune - a license could
be more than $ 10000 per font/machine. So japanese companies buy new
printers but keep their MacOS 9 production machines)
I have got a simple .r file with strings and just need the "STR#"
definition.
When I include the header file as in MacOS 9
#include "MacTypes.r"
I get
### /Developer/Tools/Rez - SysError 0 during open of "MacTypes.r".
Huh? What is SysError 0?
OK, so I tried the framework include:
#include <CarbonCore/MacTypes.r>
### /Developer/Tools/Rez - SysError 2 during open of "CarbonCore/
MacTypes.r".
Any hints what I can do to solve this?
As a workaround, since I only need "STR#", I copied just that
definition:
// STR# Pascal-Style String List
type 'STR#' {
integer = $$Countof(StringArray);
array StringArray {
pstring;
};
}; // STR# */
Now the build succeeds - but with lots of errors!
Huh? It succeeds in spite of having errors?
Here's a sample string resource:
resource 'STR#' (kSampleStringsID, "Samples", purgeable) {
{ "ó·", // Oã // ja
"Sample", // en
"Beispiel", // de
"Exemple", // fr
"Ejemplo", // es
"Esempio" // it
}
}; // Samples
Here's the build result:
Rezzing resources/mystrings.r (2 errors)
Type 'STR#'
Resource 'STR#' (-8015, "Samples", purgeable).
Build succeeded (2 errors)
/Volumes/ms/PDEs-Universal/resources/mystrings.r:20: ### /Developer/
Tools/Rez - Type 'STR#'
/Volumes/ms/PDEs-Universal/resources/mystrings.r:30: ### /Developer/
Tools/Rez - Resource 'STR#' (-8015, "Samples", purgeable).
Resource size (129) bytes
The strings indeed get included into the built target, but I'd like
to get rid of those errors.
TIA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden