🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rmit.comp.sys.mac
Article #10

Re: CodeWarrior

#10
From: Hamish Moffatt
Date: Wed, 05 Aug 1998 00:00
28 lines
1954 bytes
In rmit.comp.sys.mac Luke Walshe <lw@yallara.cs.rmit.edu.au> wrote:
>>That's the effect I want -- "unsigned char" should be a byte;
>>char might not be.

> I don't know any implementation where char is > 8 bits.

I think it's defined to always by 8 bits; I assume that it could
be signed though, which is why you can explicitly state it. The CW option
"chars are always unsigned" is a confusing one, then.

> Anyway C++ iostream objects are too inefficient for binary files.
> You could use block mode read/write calls like fread & fwrite straight 
> to/from a uchar array.  

> You have to use MacOS Resource Manager calls to read/write resources.  
> But they are very easy too use. All this is done transparently for
> UI objects like Windows/Dialogs/Scroll Bars etc.  

I will try this.


thanks,
Hamish
-- 
Hamish Moffatt, StudIEAust              hamish@debian.org, hamish@moffatt.nu
Student, computer science & computer systems engineering.    4th year, RMIT.
http://hamish.home.ml.org/ (PGP key here)             CPOM: [*******   ] 71%
Nondeterminism means never having to say you are wrong.
Technical Details
Message-ID: <6q9b0k$im$2@emu.cs.rmit.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6q6mo2$k20$2@emu.cs.rmit.edu.au> <6q8ln4$qeo$1@emu.cs.rmit.edu.au> <6q8sjm$rrk$1@emu.cs.rmit.edu.au> <6q8u9j$s6l$1@emu.cs.rmit.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a4e6,d3a31d5aa2374f1d
X-Google-Attributes: gid10a4e6,public
X-Google-Thread: 10b5e3,d3a31d5aa2374f1d
X-Google-Attributes: gid10b5e3,public
From: hamish@moffatt.nu (Hamish Moffatt)
Subject: Re: CodeWarrior
Date: 1998/08/05
Message-ID: <6q9b0k$im$2@emu.cs.rmit.edu.au>
X-Deja-AN: 378119332
References: <6q6mo2$k20$2@emu.cs.rmit.edu.au> <6q8ln4$qeo$1@emu.cs.rmit.edu.au> <6q8sjm$rrk$1@emu.cs.rmit.edu.au> <6q8u9j$s6l$1@emu.cs.rmit.edu.au>
X-Complaints-To: abuse@cs.rmit.edu.au
X-Trace: emu.cs.rmit.edu.au 902311764 598 131.170.24.42 (5 Aug 1998 10:09:24 GMT)
Organization: poor.
X-Posting-User: moffatt
User-Agent: tin/pre-1.4-980226 (UNIX) (SunOS/5.6 (sun4u))
NNTP-Posting-Date: 5 Aug 1998 10:09:24 GMT
Newsgroups: rmit.comp.sys.mac,aus.computers.mac