HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.sys.mac.programmer
Subject: Re: ShareWare assembler?
From: seth@physc1.byu.edu
Date: 25 Jan 93 18:55:23 -0700
Distribution: world
Organization: Brigham Young University

In article <C1FoJp.G9@dartvax.dartmouth.edu>, Scott.M.Silver@dartmouth.edu (Scott M. Silver) writes:
> Are there any shareware assemblers out there, I'm not looking for
> anything 
> particularly special just so it doesn't have to be done by hand...
> 
> 
> Thanx in advance.
> 
> Scott Silver
> scott.silver@dartmouth.edu
> 
> 
> "If you met two guys name Hambone and Flippy which would you think
> would like Dolphins more?  You'd probably say Flippy, but you'd be
> wrong though, it's Hambone."  -JH
> Dartmouth College '96
> Hanover NH


YES! There now is one. This question has been asked by many people (myself
included) many times, but now the answer is not "no, unless you want to buy
MDS, which is outdated.... or use THINK C's inline assembler..., or better
get MPW...   If you look in the demo directory at sumex-aim.stanford.edu
there is a shareware assembler ($65 fee) called MacAssembler. I forget just
what it is called in that directory, but you will not have trouble finding
it. I have had a look at it, and it looks nice. It was written by the same
guy that put out the book so many of us know and love, "Assembly Language
and Systems Programming for the M68000 family." I wish I could get my school's
CS department to switch from MDS to this MacAssembler, as it is actually
up-to-date and everything. THings is, then they'd have an excuse to get rid
of the SE's and use system 7. Oh nooooooooo!

Seth Leigh
BYU Physics Dept.

Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: File IDs, a load on HFS?
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Thu, 28 Jan 1993 21:52:49 GMT

In article <1993Jan28.164626.9825@kth.se>, d88-jwa@feffe.nada.kth.se (Jon
Wtte) wrote:
> 
> Inside Mac says "a new directory tree node is created
> for each File ID that is created"
> 
> However, I always assumed files always had IDs under
> HFS (and that might be the value returned in the dirID
> field when calling PBGetCatInfo, who knows? :-)
> 
> Am I correct in assuming that, under HFS, there is no
> penalty involved in creating a file ID for every file?
> (I am not concerned about remote volumes)

There is a "penalty." Although there is a file ID associated with every
file when the file is created, HFS can't search (quickly) using that ID.
When Inside Mac mentions "creating a file ID," what it really means is that
it is creating a catalog record that HFS can later use to search for the
file by that ID.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
From: rudolph@unixg.ubc.ca (Christopher E Rudolph)
Newsgroups: comp.sys.mac.programmer
Subject: Symantec's Address & Telephone #
Date: 22 Jan 93 16:23:17 GMT
Organization: The University of British Columbia
NNTP-Posting-Host: unixg.ubc.ca
Summary: I need Symantec's Address and Telephone # so I upgrade to TR 2.0
Keywords: Symantec

Hello all,

I still haven't received my upgrade notice in the mail (probably because
I'm in Canada) so I would like to call Symantec directly to get the upgrade.

So can someone please supply me w/ Symantec's phone number and address. 
All I really need is the phone # though.

Thanks,

Chris Rudolph (ComputerScience, UBC) <rudolph@unixg.ubc.ca>
|| Point To Ponder - What Is Meaning? ||
Newsgroups: comp.sys.mac.programmer
Subject: Hardware Protection Keys
From: theeric@violet.ccit.arizona.edu (Eric Hegstrom - THEERIC)
Date: 23 Jan 1993 18:50 MST  
Distribution: world,local
Organization: University of Arizona
News-Software: VAX/VMS VNEWS 1.41    

In article <pcw.727726325@digex>, pcw@access.digex.com (Peter Wayner)
wrote:
>
> Does anyone know the location of a Macintosh Doggle
> Manufacturer? (Doggles are the little do-hickeys that
> you connect to the computer to prevent piracy. The
> software polls the do-hickeys every once and a bit
> to see if it is still there.) ADB bus doggles would
> be better.
>


I don't know about ADB devices but the company I used to program
for used read/writable protection keys for the SCSI port (transparent
to any devices I tried to hook up).

They were made by a Frech company called Microphar.

Their U.S. distributor is:

     Protech Marketing, Inc.
     (800) 843-0413

We used their keys and had no problems.


Eric Hegstrom                      personal: theeric@ccit.arizona.edu
c/o Hugish Software Association    business: hugish@aol.com
1718 E. Speedway #105
TELE  (602)770-9650
FAX   (602)623-6777
From: irac@yang.earlham.edu
Newsgroups: comp.sys.mac.programmer
Subject: Fx and Telnet 2.5 trouble.
Date: 21 Jan 93 23:24:18 GMT
Organization: Earlham College, Richmond, Indiana

Ok I fixed the Quadras I have on my little Ethernet.  Now my Fx is giving me
grief- Only intermitently though- Darn! Here is the trouble.  Sometimes NCSA
Telnet 2.5 crashes.  No error message it just freezes the machine.  It seems
that if I turn off all the Inits with extensions manager and turn them back on
it works?  Strange fix?  And for how long it works I don't know.  Am I looking
at a traffic jam?  Or Telnet 2.5 problems?  My driver is up to date?  I also
cured mathematica crashes on quadras with this technique.  I don't like this
technique because I don't know why it should work.  Can anyone shed any light
on this one? 

-ira
End of line.
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: Mac keyboard driver?
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 26 Jan 1993 16:01:58 GMT

In <1k2s4vINN39i@golem.wcc.govt.nz> bennett_w@kosmos.wcc.govt.nz (William Francis Bennett) writes:

>I'm porting an application from Windows to Mac, so far with a lot of success,
>but I can't find any reference to the Mac's keyboard driver.
>Is there such a thing?

Yes, and it's not documented, for good reasons.

>In particular, I'm looking to read a keystroke sequence - such as the plus key
>followed by the star key (on the numeric pad) to trigger an action.

Try looking up NGetTrapAddress, NSetTrapAddress, PostEvent and PPostEvent
- or, even better, look up the jGNEFilter. You also will need to know
how to write an INIT.

This is stuff that you need to write real extra special careful, or
users will return years later to haunt you. It's very powerful,
though.

I recommend getting ahold of all volumes of Inside Macintosh, of
the TechNote stack, and both the comp.sys.mac.programmer FAQ and
the UseNet Mac Programmers Guide. A subscription to _Develop_ is
only $30/year, and will give you the developer CD that's a MUST
for Mac developers (you also have to get a CD ROM, of course)

Note that this advice applies ESPECIALLY if you're a commercial
developer, even the FAQ will help you across several pitfalls.

If you're commercial, and can't even cough up the $400 for a
CD ROM, forget it. Mac users demand better stability and devotion
than that.

Cheers,

						/ h+
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

   This article printed on 100% recycled electrons.
From: cklarson@flauta.engr.ucdavis.edu (Christopher Klaus Larson)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Recommended way to deal with large memory buffers?
Date: 25 Jan 93 18:56:21 GMT
Organization: College of Engineering - University of California - Davis

In article <1jqeefINNcio@darkstar.UCSC.EDU> speth@cats.ucsc.edu (James Gustave) writes:
>
>  I'm working on an encryption application, and I need to go through a file,
>encrypt it, and write it to a new file.  The encryption routine takes a Ptr
>to a buffer, and a count of the number of bytes to process.  For small files,
>it makes sense to read the whole file into the buffer and do the encryption.
>However, this means that the maximum size of the file to be encrypted is
>determined by the amount of memory the program can allocate.  On the other
>hand, if I did the encryption incrementally, writing the parts to a temp file,
>then there might be a lot of unnecessary disk access which would slow down
>the process.

You should figure out how much memory would be required to process the entire
file at once and see if there is a block of temporary memory of this size
available. If so, go ahead and use it. If not, you will have to process the
file in pieces by using the buffer allocated within your application heap.
See Inside Macintosh: Memory for details.

--Chris
cklarson@engr.ucdavis.edu
Newsgroups: comp.sys.mac.programmer
From: rsanb@ctp.com (Randall Sanborn)
Subject: MacTCP: MPW C and Think C
Organization: CTP, Inc.
Date: Tue, 26 Jan 1993 20:27:34 GMT

I am having a problem with the MacTCP TCPSend() function in MPW C 3.2, 
but not in Think C 5.0.  The code I had previously written and compiled 
in Think now compiles and links under MPW, but returns an invalidLength 
error on the TCPSend() function.  The MacTCP manual states "the total 
amount of data described by the WDS was either 0 or greater than 65,535 
bytes."  I have checked the length member of the wdsEntry structure, and 
it is between 0 and 64K bytes.  My function is as follows (with some code
extracted):

#define ASYNC FALSE

foobar(unsigned short len, char *mesg) {
	TCPiopb 	*tbp;		// Both pointers are malloc'd
	wdsEntry	*pWds;		// and cleared with 0's

	pWds->length	=len;
	pWds->ptr	=mesg;

	tbp->tcpStream	=TCPstreamPtr;
	tbp->ioCRefNum	=TCPRefNum;
	tbp->csCode	=TCPSend;	

	tbp->csParam.send.wdsPtr=(Ptr)pWds;	

	rc = PBControl((ParmBlkPtr)tbp,ASYNC);

	tbp->ioResult
	}

In MPW, I have checked the sizeof() the TCPiopb and the wdsEntry structs,
they are the same as Think sizeof()'s.  There could be some byte-rounding
problem with this call, but I do not think this is the case, since
I have checked the first 6 bytes of tbp->csParm.send.wdsPtr. Before 
and just after execution of PBControl, the data seems valid. (2 byte
length, and 4 byte address for the mesg address).  

If anyone has any idea, I would be happy to hear them.
Also, rc is equal to tbp->ioResult, is this normal?  


Thank you in advance,

Randy

-- 
 +     /\/\     Randall M. Sanborn (rsanb@ctp.com)                           +
 |    /-/  \    Cambridge Technology Partners                                |
 |    \--/ /    301 Vassar Street                                            |
 +     \/\/     Cambridge, MA 02139                                          +
From: eapg070@orion.oac.uci.edu (Caroll Elke Pohl)
Subject: Re: Help me get the ResEdit Icon BACK! Please!?!
Summary: i have this problem too
Newsgroups: comp.sys.mac.programmer
Organization: University of California, Irvine
Keywords: resedit
Date: 23 Jan 93 18:57:28 GMT
Distribution: usa

i'm having this problem with resedit too. after rebuilding the desktop
the resedit application icon as well as the document icons were gone.
the BNDL and ICN# resources were ok but...
after rebuilding the desktop again the problem persists.
weird.

-caroll

                      ) """ (
                       (Q Q)
   Don't spook        (  |  )
    the horse!         \ A /
                       (___)
From: werner@dewey.soe.berkeley.edu (John Werner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Arcade-style animation...
Date: 27 Jan 1993 20:02:29 GMT
Organization: School of Education, U.C. Berkeley
NNTP-Posting-Host: dewey.soe.berkeley.edu

In article <34994@goofy.apple.COM> Christopher Russo writes:
>In article <1993Jan25.094256.12845@rulway.LeidenUniv.nl> Theo Vosse writes
>>Life is simple... Forget the UpdateScreen function, and implement the
>>EraseSprite as a copy of the old contents (that were stored under the
>>sprite) back to its original position. So, DrawSprite must copy the
>>contents of the sprite's position before drawing the actual sprite.
>
>Unless you have sprites overlapping each other, which would lead to some 
>ugly flicker and possibly a mess on the screen.  You'll probably want to 
>handle overlapping sprites as a special case.  Oh, and get that 'update the 
>entire screen during refresh' idea out of your mind completely unless you 
>have the secret of Mac page-flipping.

Do people think it's worth bothering with synchronizing with the VBL
when drawing sprites?  I'm writing a physics simulator with some
game-like aspects, and my animation currently goes something like
this:

repeat {
   calculate new position of each sprite
   wait for VBL interrupt
   erase all sprites by copying from offscreen bitmap holding background
   draw all sprites
}

It's actually a little more complicated, because sometimes one of the
objects in the background changes too, and then I have to redraw the
background's offscreen bitmap too.

I'm getting good performance on my Quadra (of course), but things can
get a little ugly on slower Macs.  I think what's happening is that
the "erase all sprites then draw all sprites" steps are taking longer
than the time when the electron beam isn't drawing.  Would I be better
off forgetting about the VBL interrupts?

As an aside, does anyone know about how much time there is between
screen refreshes on "average" monitors?  I know my monitor gets
refreshed about 75 times per second, but I want to know how much
drawing time I have before the next refresh starts.
-- 
John Werner                        werner@soe.berkeley.edu
UC Berkeley School of Education    (510) 596-5868 (new number)
From: mxmora@unix.SRI.COM (Matt Mora)
Newsgroups: comp.sys.mac.programmer
Subject: Re: QuickBasic, TrueBasic or FutureBasic??? Recommendations???
Date: 22 Jan 93 19:24:28 GMT
Organization: SRI International, Menlo Park, California

In article <20JAN199310122080@vx.cis.umn.edu> soc1070 writes:

>Last summer, I bought a copy of Microsoft QuickBasic on sale at a dealer.
>I paid about $70 for it, which was about $40 too much, IMHO. The problem
>with quickBasic is not the environment so much, as the lack of support
>by ANYBODY, Microsoft, third party book-writers, people in this group,
>anyone. I have been monitoring this group daily for about two months and


If you watch the archives you will notice that I been posting free pure
code resources for quickbasic. These allow you better access to the Mac
toolbox from QB. 

I haven't been programming in QB for a long time but would be glad to help 
anyone who has questions about it or needs a PCR written really quick. 
As of today I just whipped up four more PCR's for someone here at SRI who
needs them for some experiment they are connecting a Mac Plus to.

Xavier

-- 
___________________________________________________________
Matthew Mora                |   my Mac  Matt_Mora@sri.com
SRI International           |  my unix  mxmora@unix.sri.com
___________________________________________________________
From: ajr3@quads.uchicago.edu (Alain Roy)
Newsgroups: comp.sys.mac.programmer
Subject: printing multiple copies with printing manager
Summary: do i do it? does print manager do it?
Keywords: printing copies fuzzy bunnies
Date: 21 Jan 93 13:29:18 GMT
Reply-To: ajr3@midway.uchicago.edu
Organization: University of Chicago Computing Organizations

I've been learning how to make my application print lately. Last night,
I read in Inside Mac II (sorry, I don't have the new volumes yet):

  >ICopies is the number of copies to print. The Printing Manager
  >automatically handles multiple copies for spool printing or for 
  >printing on the LaserWriter.  Your application only needs this
  >number for draft printing on the Imagewriter.

Is this distinction always true for spool vs draft printing, or
just for these printers? how can i know how many copies to i need to
handle for sure since i may not be printing to a Laser/Imagewriter?

thanx.

-alain
Newsgroups: comp.sys.mac.programmer
From: salmon@cwis.unomaha.edu (David Salmon)
Subject: Re: Fixing Process Type/Creator under THINK C?
Organization: University of Nebraska at Omaha
Date: Thu, 28 Jan 1993 09:48:26 GMT

Have you tried the Set Project Type command in the Project menu?

-- 
David C. Salmon
salmon@unomaha.edu
Newsgroups: comp.sys.mac.programmer
From: joshr@kronos.arc.nasa.gov (Joshua Rabinowitz-Summer-91)
Subject: Re: &StringPtr -vs- StringPtr?
Organization: NASA/ARC Information Sciences Division
Date: Fri, 22 Jan 1993 20:08:37 GMT

In article <1993Jan22.165348.11313@novell.com> damurphy@wc.novell.com (Duane Murphy) writes:
>
>I have received some code (from a source to remain anonyumous) that is 
>supposed to work with MPW and Think C.  The MPW compiler says nothing, 
>but Think C whines about types not matching.  Here is where the problem 
>is:
>
>	Str255	msg1, msg2;
>
>... // code deleted
>
>	GetIndString(&msg1, errResID, errStringIndex);
>
>The problem is &msg1.  The prototype for GetIndString is:
>(from ToolUtils.h)
>
>pascal void GetIndString(Str255 theString,short strListID,short index); 
>
>I have changed the call to:
>
>	GetIndString(msg1, errResID, errStringIndex);


Try someting like this (it works for me)
GetIndString((ConstStr255Param) msg1, ......

Also, note that because msg1 is technically an array of chars, 
msg1 is the address of the first element, and &msg1 has no real
meaning (thoug usually is interpreted as just &msg1[0], or msg1).

Sorry, I realize you got this.

>
>which seems (to me) to match to prototype better.
>
>Who is right (according to ANSI)?  Is MPW being a slacker?  Is Think C 
>being picky?

Think C is being picky.
I would say that if you passed msg1 (not &msg1), it SHOULD accept it.
I believe I usually must cast in that situation as well, though.


>
>
>Thanks,
>...Duane
>
>  +------------------------+--------------------------------------------+
>  | Duane Murphy           | My opinions are mine, mine, and only mine; |
>  | damurphy@wc.novell.com |      Except when they are also yours.      |
>  | Macintosh Software QA  |                                            |
>  +------------------------+--------------------------------------------+


-- 
----------------------------------
#include <std/disclaimer.h>     Josh Rabinowitz, Mac TCL programmer
joshr@kronos.arc.nasa.gov
"Me lost my cookie at the disco." -- Cookie Monster
Newsgroups: comp.sys.mac.programmer
From: ambone@imag.fr (Ambone Gilles)
Subject: Need help to compare addresses
Organization: IMAG Institute, University of Grenoble, France
Date: Wed, 27 Jan 1993 21:50:09 GMT

Hi,

I had some problem to compare addresses of applications. My system
is composed like that :

- one (or more) application, name them 'W'
- one (and only one) background only application, named 'B'
- one (or more) application, name them 'O'

Each application can be on any computer (eventually the same) using
system 7 or later (communication by apple event)

I wrote library for 'W' and 'O'. This library must help programmers
in writing applications 'W' and 'O', for the moment I develop an
example of these applications, but I will not develop all of them.

1) 'W' get it's own address by sending himself an apple event.
(I don't know how to do it by an other way : I can't use PSN because
application using my library will change and my library must be
very easy to use)

2) 'W' say hello to 'B' sending it an apple event

3) 'B' store the address of 'W', using AEGetAttributePtr on 'addr' field
of the apple event.

4) 'W' send to 'B' his address took in 1)

5) 'B' must compare the two addresses {(1) and (4)} and must see that
it's the same application.

6) 'W' send the address of 'O'

7) 'O' send an apple event to 'B'

8) one again 'B' must see that address (6) and (7) are the same

For the moment, all my addresses are TargetID because I use PPCBrowser.
However, the address (1) had only the sender's port name informations,
other fields are null.
the address (3) had the same sender's port name than (1) but sender's
location names are differents.

If I try to compare only the sender's port name, I will certainly
have problems with two applications 'W' working on differents computers.

Well, actually my comparison is very heuristic, and each time, I found
a case in which my application doesn't work.

Could anyone help me to compare two addresses ?
thanks for any help you might give me.

Have a good day,
	 Gilles.
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Re: bg-only, stack size
Date: 26 Jan 93 11:32:13 +1300
Followup-To: comp.sys.mac.programmer
Organization: University of Waikato, Hamilton, New Zealand

In article <REEKES-250193123820@90.10.20.67>, REEKES@applelink.apple.com (Jim Reekes) writes:
>
> Background only applications work just like regular apps. They just don't
> use QuickDraw. (e.g. don't call InitWindows, etc.)

I don't see why not using the Toolbox has to mean you can't use QuickDraw.
QuickDraw still has uses for offscreen drawing, doesn't it?

OK, I'm prepared to accept that *most* background applications don't use
QuickDraw...

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
Mathematics is too important to be abandoned to fanatic logicians.
						    -- Benoit Mandelbrot
From: damurphy@wc.novell.com (Duane Murphy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think Reference 2.0 Review
Date: 21 Jan 93 17:40:45 GMT
Organization: Novell, Inc.
X-Xxdate: Thu, 21 Jan 93 17:48:10 GMT
X-Useragent: Nuntius v1.1.1d12

In article Mark Sproul, Sproul@sproul.sproul.com writes:
>When it is fully installed it occupies 7.1 meg

7.1 meg is a little much, but I do understnad why.  Is it practical to 
install Think Reference on a server?  Is it possible for people to share 
the database on the server?  (No licenesing problems here, you still need 
the app to see the database.)

Thanks,
...Duane

  +------------------------+--------------------------------------------+
  | Duane Murphy           | My opinions are mine, mine, and only mine; |
  | damurphy@wc.novell.com |      Except when they are also yours.      |
  | Macintosh Software QA  |                                            |
  +------------------------+--------------------------------------------+
Newsgroups: comp.sys.mac.programmer
From: garry@archsci.arch.su.edu.au (Garry Stevens)
Subject: Copying bitmaps question
Followup-To: comp.sys.mac.programmer
Organization: Dept Architectural Science, Uni of Sydney
Date: Wed, 27 Jan 1993 04:20:13 GMT

I am using CopyBits to copy a large-ish bitmap (40K) for use in printing.
IM says not to copy more than 3K at a time. How do I do this? If I make a
single CopyBits call, I get junk all over the output (but no error
message). If I make several calls to CopyBits, specifying only part of the
bitmap portrect at a time, I get a stack overflow into heap error (I am
using Think Pascal). 

IM implies that the amount you are copying at any time is irrelevant-- the
key parameter is the total size of the original bitmap. I know there must
be a totally obvious way of doing this, but I can't find it.

Thanks in advance.

Garry Stevens
Dept of Architectural & Design Science
University of Sydney
Australia
From: Dave.Bialac@theboard.omahug.org (Dave Bialac)
Newsgroups: comp.sys.mac.programmer
Subject: Apple Libraries
Date: 22 Jan 93 09:21:40 CST
Reply-To: dave.bialac@theboard.omahug.org
Organization: The Board BBS, Omaha
Followup-To: comp.sys.mac.programmer

Where can I find the Apple Macintosh Library files?
I've tried ftp.apple.com, then looked where I was told they were, and couldn't
find them.  Where Can if find these things ( I need it for the harvest C
compiler )