Jun 92 Mousehole
Volume Number: | | 8
|
Issue Number: | | 2
|
Column Tag: | | Mousehole
|
Mousehole
By Larry Nedry, MacTutor Regular Contributing Author
From: Scottab
Re: Palette Animation
The difference is in indexed vs. direct color. Indexed color uses as an index into a clut to determine what color to display for a certain pixel. Thus, changing the clut changes every pixel of that color on screen. Direct color (24 or 32 bit, and 16 bit, I believe) has no clut: the computer stores the RGB values for each pixel. Which is why palette animation in 16, 24, or 32 bits of monitor depth does not exist.
From: Jslee
Re: STR replacement
I found a series of Pascal routines that can replace/delete/add STR and STR# resources. I am converting it to C. So far I have the add function working pretty well, now on to the other functions. When I get it done I will upload the code. BTW, it is using Munger for all of the replacement stuff. I still have to manually change the number of STR# resources so that the file can be read by ResEdit (if you do not change the number of strings in the STR# resource an error will occur and ResEdit will politely remove the extraneous STR's for you).
From: Jslee
Re: SetIndStr.SIT
The file is attached to this reply. I converted someone's Pascal code into C. I will give them credits later. I could not think of an EASY way to delete STR# resources so I decided that if you wanted to delete a particular resource you should pass the negative of its id (so if you wanted to delete STR# 128 you would pass -128 to my routine). I know this is
not the easiest or the best way to do this so any suggestions would be appreciated.
From: Bonhoffer
Re: Memerror code
I was using Think 3 and after calling a memory manager routine like ReallocHandle, I got a MemError of -113. I could not find this code in IM or any where else. Does anybody know what this means?
From: Sysop
Re: Memerror code
There is a Desk Accessory in the System File LIB called System Errors Table that has all of the known system errors in an easy to read format.
You can also look in Errors.h or Errors.p. Error -113 is the memAZErr - Address in zone check failed
From: Bonhoffer
Re: Memerror code
Does that mean that it was in Inside Mac and I didn't find it or are there error codes that are not in IM I-V?
If I bought Think Reference, do you think that they would be easily referenced from there as well?
From: Sysop
Re: Memerror code
The Think Reference is one way you could have found your answer.
There is an amazing amount of information available in the language interface files (*.h, *.p and *.a). Do a little exploring in them sometime if you can't find your answer elsewhere.
But I use Think Reference religiously. It is much easier and faster to use than any other product I have seen including Inside Mac.
From: Megabozo
Re: New Apple adverts
Has anyone seen the new Apple commercials on the telly? (You know, the ones with the guys riding the coal car.) The tag line is 'Introducing the new technology'. Can someone more knowledgeable tell me, does this portend the announcement of a new computer (perhaps the long-awaited notebook Mac)? Or is Apple just baying at the moon? Also, does anyone know anything about the new CRAY Y-MP?
From: Badblud
To: ** ALL **
Re: INITs (1 reply)
Hi, I'm looking for source code to various type of INITs. I've seen some really nice stuff, you know, Public Folder or Broadcast. I will need to set parameters in the Chooser or the Control panel. The main part of the program will wait on the serial port for special characters.
I would like to mention this is not for a commercial product, but a university research project.
From: Sysop
To: Badblud
Re: INITs
Check out Morse.C in the Language File Library. It is an example of an INIT/cdev combination.
From: Sysop
To: Atom
Re: registering ZTerm (1 reply)
The address to register ZTerm is: David P. Alverson, 5635 Cross Creek Court, Mason, OH 45040