[comp.sys.mac.digest] Info-Mac Digest V7 #51

Info-Mac-Request@SUMEX-AIM.STANFORD.EDU (The Moderators) (03/16/89)

Info-Mac Digest             Wed, 15 Mar 89       Volume 7 : Issue  51 

Today's Topics:
                    'Sad Mac' codes defined (long)
                    1-2-3 files to EXCEL using AFE
    Answers to Home Stacks, Multi-Launching, and Switch-Launching
                         ApplicationMenu 3.4
                        Daylight Savings Time
                          Finder Setup Help
                HyperCard/Oracle programming comments
                          Hypercard problems
                   Info-Mac Digest V7 #50 (RESEND)
  Request for info:  multi-user accounting packages for Universities
                   TransSkel with Lighspeed C 3.01
                       Two Pascal Questions...
                             WKS to Excel

Your Info-Mac Moderators are Lance Nakata, Jon Pugh, and Bill Lipa.

The Info-Mac archives are available (by using FTP, account anonymous, any
password) in the info-mac directory on sumex-aim.stanford.edu [36.44.0.6].

Please send articles and binaries to info-mac@sumex-aim.stanford.edu.
Send administrative mail to info-mac-request@sumex-aim.stanford.edu.
----------------------------------------------------------------------

Date: Wed, 15 Mar 89 11:15 EST
From: <CHRIS%FANDM.BITNET@forsythe.stanford.edu> (Chris Iverson)
Subject: 'Sad Mac' codes defined (long)

The following is exerpted from an article that originally appeared in "Apple
Direct" magazine.

> On the old ROMS:
   When you hit the interrupt button on the side of your Macintosh during the
boot process, you should get a sad Mac icon with 0F 000D and some dots cycling
under the icon to indicate that the Macintosh is performing a memory test.  \
This numeric code is in two parts:  The firsttwo characters are the "class code"
and the next four are the "subclass code".  The class code tells what part of
the diagnostic program found the error, and the subclass code tells what the
error is.  In the case of a bad RAM chip, the subclass identifies the bad chip.

> On the new ROMs:  The sad Mac error codes are changed to incorporate
additional power for testing and to support a 32-bit world.  Generally, the
same codes are used...but they are displayed differently.
The traditional Mac error codes are dislayed as follows:
0F0003
Where "F" indicates an exception occurred, and "3" indicates an illegal
instruction occurred.  On the SE and II family, the display would appear:
0000000F
00000003
The new power-on error codes have the following format:
XXXXYYYY
ZZZZZZZZ
Where XXXX is the internal test manager state information (ignore this), YYYY
contains codes that indicate either an exception code or the test number for a
power-on test failure.  The ZZZZZZZZ code contains additional failure info to
help track down the problem.

YYYY error codes:
$0001: ROM checksum test failed.  Ignore Z field.
$0002: First small chunk of RAM tested failed.  Z field indicates which RAM
   bit(s) failed.  This chunk of RAM is always in bank B.
   Example: $AABBCCDD
   AA=8-bit mask for bits 31-24
   BB=8-bit mask for bits 23-16
   CC=8-bit mask for bits 15-8
   DD=8-bit mask for bits 7-0
$0003: RAM test failed while testing bank B, after passing the chunk tested for
   $0002.  Z field indicates which bits failed, as in code $0002.
$0004: RAM test failed while testing bank A. Z field same as for $0002.
$0005: RAM external addressing test failed.  Z field indicates the failed
   address line.
$0006: Unable to properly address the VIA1 chip.  Ignore Z field.
$0007: Unable to properly address the VIA2 chip (Mac II only).  Ignore Z field.
$0008: Unable to properly address the Front Desk Bus.  Ignore Z field.
$0009: Unable to properly address the MMU.  Ignore Z field.
$000A: Unable to properly address NuBus.  Ignore Z field.
$000B: Unable to properly address SCSI chip.  Ignore Z field.
$000C: Unable to properly address the IWM chip.  Ignore Z field.
$000D: Unable to properly address the SCC chip.  Ignore Z field.
$000E: Failed Data Bus test.  Z field indicates bad bit(s) as a 32-bit mask for
   bits 0-31.  This error may indicate a bad SIMM or data bus failure.
$000F: Reserved for Macintosh compatibility.
$FFxx: A 680__ exception occurred during power-on testing.  The xx indicates
   the exception:
   $01 Bus error
   $02 Address error
   $03 Illegal instruction error
   $04 Zero Divide
   $05 Check Instruction
   $06 cpTrapCC, Trap CC, Trap V
   $07 Privelege Violation
   $08 Trace
   $09 Line A\
   $0A Line F (the backslash on the previous line is a typo)
   $0B Unassigned
   $0C CP protocol violation
   $0D Format exception
   $0E Spurious interrupt
   $0F Trap 0-15 exception
   $10 Interrupt Level 1
   $11 Interrupt level 2
   $12 Interrupt level 3
   $13 Interrupt level 4
   $14 Interrupt level 5
   $15 Interrupt level 6
   $16 Interrupt level 7
   $17 FPCP BRA orSET on unordered condition
   $18 FPCP inexact result
   $19 FPCP divide by zero
   $1A FPCP underflow
   $1B FPCP operand error
   $1C FPCP overflow
   $1D FPCP signalling NAN
   $1E PMMU configuration
   $1F PMMU illegal operation
   $20 PMMU access level violation

There you have it folks:  Everything you always wanted to know about sad Mac
error codes, but didn't want to be bored to death reading about.  I hope this
is helpful.

Chris Iverson
F&M Tech Support

Disclaimer:  I'm just a grunt, don't take me seriously...

------------------------------

Date: Wed, 15 Mar 89 8:42:35 EST
From: Kenneth Sussmann (PBMA) <sussmann@pica.army.mil>
Subject: 1-2-3 files to EXCEL using AFE

>I have a MacIIx with a PC-5.25" drive, and i'm able, using Apple File
>Exchange to read and write files of a few formats, but I can't seem to
>get WKS files to work in Excel.  Every reference I have seen to this
>says that Excel "knows how" to read WKS files, and indeed it can
>*write* to that format, but the Open File dialog box does not display
>WKS files I copy over from my PC.  Is there a problem with using the
>"default translator" in AFE for WKS files?  Is there a special
>translator for this?  Is it available PD?  Am I just doing something
>stupid?

There is a "trick" that must be performed before Excel can
recognize WKS files. Use your favorite utility to change the
file type of the converted file to "TEXT". Then Excel can
"see" it. AFE makes it "xbin" (or something like that). When
you open the document, EXCEL will read the header and figure
out that it is a WKS and convert it for you. It would be
nice if there was an option in AFE to do this for you. The
casual user will probably never figure out what is going
wrong. I know, it took me two weeks to get it to work.

Ken

           U.S. Army Production Base Modernization Activity
           Picatinny Arsenal, New Jersey

------------------------------

Date: Wed, 15 Mar 89 09:37 CST
From: "Kevin W. Mullet, UNT Academic Computing Services" <KEV@vaxb.acs.unt.edu>
Subject: Answers to Home Stacks, Multi-Launching, and Switch-Launching

Thanks to all who replied to my recent query on Info-Mac.  

To recap, I'm supervisor of a Novell 2.15 network which has
several  2-floppy SEs as nodes in our academic lab.  I needed
a good way to use all the fonts and DAs we have available.   The
problem I had was that I couldn't make the network disk a
startup disk (thus effectively precluding remote boot or switch-
launching) and it's out of the question for us to add hard disks
to our Macs to enable us to store the fonts and DAs locally. 
I need to store them on the network.  

Thanks to the following people for either providing answers, or
showing interest in my dilemma.  If I miss anyone, it's
unintentional.
                        * Contributers *

Aron Roberts,                  Univ. of California at Berkeley
Tim Dierks,                                         Notre Dame
Kurt Christensen                       Texas Instruments Corp.
Michael Niehaus                          Ball State University
Rand P. Hall                                 Merrimack College
Nicholas L. Hayes                             Drake University
Aron Rogerts              University of California at Burkeley
Bill Lipa                                   Info Mac Moderator

                    * Questions & Answers *

1:   HOME STACKS -- I wanted to know what it was that designated
     a hypercard stack as a HOME stack.  I also wanted to know
     how to make Hypercard multilaunchable (useable by more than
     one person concurrently on a network).

              "[...] version 1.2.1 and later versions of
              Hypercard CAN multilaunch from a network.  The
              trick is to set the shared bit, using ResEdit, of
              Hypercard, then placing it and the Home Stack into
              a non-writeable folder.  Then you can launch
              Hypercard as many times as you want."

              "[...] one needs to set the "can't modify stack"
              property for these [shared version 1.2 or greater]
              stacks."

              "[...] There's nothing special about the "Home"
              stack except its name. [...]"




2:   MULTI-LAUNCHING -- I wanted to know, in general, how to
     make applications multi-launchable on a network.

          "[with older versions of ResEdit] a 'Cached' bit needs
          to be set [in the application you want to
          multilaunch].  With newer versions of ResEdit, you
          need to click the 'Shared' bit."

          "In current versions of ResEdit, it is the SHARED bit,
          not the CACHED bit which controls whether or not the
          Finder will allow you to launch more than once.  A
          program which does not write to itself nor use a
          temporary file with a hard-wired name is a good
          candidate for this bit-switching trick.  Be sure your
          license allows the software to be used by more than
          one person at a time before turning this bit on."

          "It's also a good idea to be legal :-).  We've
          actually gone out and baught 40 copies of our
          applications for out 40 public Macs."

3:   SWITCH-LAUNCHING -- Since our two-floppy Macs didn't have
     the disk space available to use all the laser fonts we have
     available by putting them on their individual startup
     disks, I asked how to do this, assumedly by switch-
     launching on the network.

              "You might want to try getting Font/DA Juggler+
              from AlSoft.  They make multi-user versions that
              would enable a local system to use fonts that are
              kept on a remote file server. [...]" 

        ****  "[...] Using the Font/DA Mover, you can load fonts
              and DA's directly into application files.  You
              have to open the application from inside the
              Font/DA Mover.  "  (I used this solution.)

              

I hope this message is helpful enough to justify its length. 
Thanks again to all who replied.

-Kevin Mullet
 Microcomputer Support,
 University of North Texas Academic Computing Services

------------------------------

Date: Mon, 13 Mar 89 16:19:05 -0800
From: lsr@apple.com
Subject: ApplicationMenu 3.4

Enclosed in ApplicationMenu 3.4, which should replace version 3.3 in the
archives (and on users' machines).  This version fixes a bug which could
cause a crash if you try to activate ApplicationMenu when there are no menus
in the menu bar.  

(This came up in the context of launching an application under MultiFinder
when there wasn't enough RAM for the app's recommended partition size.  When
the Finder puts up its alert, there sometimes aren't any menus in the menu
bar.)

If you have version 3.3 of ApplicationMenu you can preserve all your current
settings by dragging version 3.4 to your hard disk, and before rebooting,
opening the Control Panel and selecting ApplicationMenu.  Then reboot so
that the new code can install itself.

Sorry for the confusion.

Larry Rosenstein


[Archived as /info-mac/cdev/applicationmenu-34.hqx; 16K]

------------------------------

Date: Tue, 14 Mar 89 11:08 EST
From: Greg Smith <SMITH%BKNLVMS.BITNET@forsythe.stanford.edu>
Subject: Daylight Savings Time

Daylight Savings 1.0 is a Control Panel Device that will allow your Macintosh
to set its own clock forward or backward an hour at the appropriate times of
the year, automatically.  It's FreeWare.  The StuffIt archive contains a short
MacWrite document and the "Daylight" Control Panel document/INIT.  Enjoy!

Greg Smith  <Smith@Bucknell.Bitnet>
Systems Analyst
Bucknell Computer Services
Bucknell University
Lewisburg, PA  17837
(717) 524-1801 

[Archived as /info-mac/cdev/daylight-savings.hqx; 22K]

------------------------------

Date: 15 Mar 89 07:09:00 EST
From: "ROBERT MCCOWAN" <mccowan@ccf3.nrl.navy.mil>
Subject: Finder Setup Help

Some time ago, a tip was given in the Digest on setting up
the finder so that double-clicking on a window's title bar
brought forward the window one level higher in the
hierarchy.  Unfortunately, when upgrading my system, I
changed that setting. I can't recall what I needed to do
change to enable this feature, and would appreciate any help
with my memory .  I'm pretty sure that ResEdit was involved.
 This would be a good tip for the Tips directory in the
archives. 


Thanks 

Bob McCowan MCCOWAN@NRL.ARPA 

------------------------------

Date: 14 Mar 89   09:24 EST
From: WMLBTAM%UCCCVM1.BITNET@forsythe.stanford.edu
Subject: HyperCard/Oracle programming comments

We currently use Oracle/VMS for a test patient information database which will
eventually be shared (in one fashion or another) over an Ethernet with several
Mac IIs and a IIx.  We have a copy of the Network version of Oracle/Mac to
play with, to see how/how well it will work with the VMS version and with other
products we want to use in the same environment.  Since we are new Mac
adopters, and fairly new Oracle adopters, we have some questions!  Some of
these are really HyperCard/HyperTalk-specific, I think, and others are Oracle-
specific.  Anyone with info/comments on any of these?  AdvTHANKSance!

1)  Will applications we produce in Oracle/Mac-via-HyperTalk/HyperCard be
    compatible with SuperCard?

2)  Since HyperCard itself only has ONE WINDOW, and since we're running on a
    Mac II with the bigger-than-an-SE screen, can we use XCMDs of our own or
    somebody else's devising to open up additional windows on the screen?  I
    recognize this may make the HyperCard window "inactive" while "our" window
    is open...

3)  Oracle/Mac doesn't have much graphing capability to speak of, either by
    itself or as part of the HyperCard functionality.  Can we/how easily can
    we move data out of an Oracle database into another product for graphing?
    Can this be done through HyperCard itself, a la question #2 above?

4)  Oracle/VMS (don't know about Oracle/Mac) has LONG text fields.  Don't know
    but I suspect they're NOT longer in the Mac version than a TextEdit field
    can handle--at least, I hope not.  Question is this:  If we pour text from
    the VMS version down into the Mac/HyperCard version, will it go into a
    HyperCard TextEdit window within the card boundary properly, e.g., scroll-
    able text?  We have had problems on other platforms with having to manage
    scrolling of text ourselves (more like what you'd have to do at the Mac
    interface level--how much has Oracle/HyperCard done for us?)

5)  What third-generation languages, besides "C", can you precompile on the
    Mac for inclusion in Oracle/Mac programs?  The manual seems to indicate
    they have only their "Pro-C" compiler.  Having used neither very extensive-
    ly, we kind of lean to LSP (and then to LSC), which we used in DevEd 102
    classes.

We're going to be asking these and lots of other questions of our Oracle reps,
as well, so I can report back to the net if anyone is interested.

===============================================================================
Theodore Allan Morris                         | 231 Bethesda Avenue, ML# 574
University of Cincinnati Medical Center       | Cincinnati, OH  45267-0574
Medical Center Information and Communications | 513-558-6046 (W), 731-3451 (H)
Information Research and Development          | WMLBTAM@UCCCVM1 or WB8VNV (NTS)
===============================================================================
Call me up and I'll talk data to ya'!
===============================================================================

------------------------------

Date: 10 March 1989 19:31:42 CST
From: <PUDAITE@vmd.cso.uiuc.edu>
Subject: Hypercard problems

"Maj. Doug Hardie" <Hardie@dockmaster.arpa> reports that HyperCard 1.2.2
seems to have fixed sound problems he encountered.  However, I still
get crackling or whining sounds when running my MacBlitz stack with
HyperCard 1.2.2 on Mac II and Mac IIx (no problems on Mac+).  I have
also had XCMDs crash when using callbacks that invoke HyperCard's
"play" command, even very short sounds like 'play click "gt"', if the
sounds are played in quick succession.

Paul R. Pudaite

------------------------------

Date: Tue, 14 Mar 89 15:22:43 CDT
From: "James N. Bradley" <ACSH%UHUPVM1.BITNET@forsythe.stanford.edu>
Subject: Info-Mac Digest V7 #50 (RESEND)

RE Soft-Step

I called them after seeing an ad.  They don't recommend the .75 SIMM
because they bought it during the RAM crisis and it costs too much.

Other solutions:
They'll sell you a 1MB adapter that will allow you to plug 4 256K's in plus
3 1Mb SIMMS for $855
They'll sell you 4 of the 1MB adapters for a Macintosh II for $195
They'll sell you 4 of the 1MB adapters for a Macintosh SE for $169 but
these require low-profile SIMMS.  There were one or two other configurations
available but I'm afraid my notes aren't very good.  They advertise regularly
in most Macintosh trade rags so you'll have to watch for their 800 number
since I lost it.

Jim
Acknowledge-To: <ACSH@UHUPVM1>

------------------------------

Date: 14 Mar 89 22:31:00 EST
From: hamm@biovax.rutgers.edu
Subject: Request for info:  multi-user accounting packages for Universities

Wanted:  Multi-user accounting software for University research labs

We are looking for information about software to support non-profit and
grant management functions in a University setting.  We're interested in
any such software which will run on PCs, Macintoshes, microvaxes, unix
boxes or some combination of these.  The most critical requirement is that 
the software support *multiple* concurrent users (at least 6, preferably
open-ended), either over a network or via async terminal connections.  We 
have seen numerous nice single-user packages, but these no longer suffice 
for our needs.

The shopping list of functions include support of custom Purchase Order
formats, vendor database support, complete line-item tracking, payroll
committments and projections, flexible reporting, etc. -- all consistent
with accounting for multiple principle investigators with multiple funding
sources.

I'd appreciate any and all information on products, experiences, 
or recommendations.  Please e-mail directly to me, as I'm not on all the
lists I'm mailing this too.

Thanks,

Greg

------------------------------

Date: Mon, 13 Mar 89  19:57:18 EST
From: FULIGIN%UMass.BITNET@forsythe.stanford.edu
Subject: TransSkel with Lighspeed C 3.01

Howdy,

     I recently downloaded TransSkel for Lightspeed C, and it looks great,
but when I try to build one of the example applications (MiniSkel in
particular, but it seems to happen for all of them), I get a link error to
the effect of 'qd_ not found'. Is this an incompatibility with the latest
version of LightSpeed C (3.01p whatever-the-last-patch-that-was-posted-was),
or am I missing something (entirely possible - I'm new to mac programming)?
Is there a simple solution? Any help would be greatly appreciated!

                                                             -Peter Lee

Fuligin@UMass.BITNet or
lee@cs.umass.edu

------------------------------

Date: Tue, 14 Mar 89 14:38:23 CST
From: Michael Hanrahan <C09615MH%WUVMD.BITNET@forsythe.stanford.edu>
Subject: Two Pascal Questions...

   I'm somewhat of a beginner at programming the Mac (using Turbo
Pascal) and have a few questions.

   1. Two programs I'm writing need to display data in what is
      essentially a columnar format.  After looking through Inside
      Macintosh (volume IV in particular), I thought that using the
      List Manager would be an easy way to get the data to line up
      AND handle all the scrolling needed (an added plus for me, see
      problem 2 below).

      I call the appropriate List routines and indicate that I want
      it to display the vertical and horizontal scroll bars.  All of
      the text is inserted into the individual cells.  When the window
      is drawn, the scroll bars show up and the thumbs move up and
      down, but no text shows up.  I've checked all the obvious
      things such as making sure the Quickdraw pen is active and down,
      that LUpdate knows to update the window, etc. to no avail.
      Does anyone have any ideas on getting this to work?  Is there
      something I'm overlooking?  Given that Borland hasn't really
      done anything with Turbo Pascal for the Mac since 1987, I would
      have no problems believing that this is in some way due to
      Turbo not being fully aware of all the List manager routines.

   2) One of the most puzzling areas for me in programming the Mac
      involves windows and handling update events.  Are there any
      books available which do a respectable job explaining how to
      handle these areas?  Does anyone have some clearly annotated
      source code that demonstrates good window management?

I will appreciate any and all comments or suggestions on either of
these topics.  Replies may be sent directly to me or back to the
list (I have no preference...)    THANKS


Michael Hanrahan
Educational Computing Services
Washington University

------------------------------

Date: Wed, 15 Mar 89 08:17 EDT
From: Jeffrey Shulman <SHULMAN@sdr.slb.com>
Subject: WKS to Excel

We had the same problem.  The solution is to change the converted file's
filetype to TEXT.  Then Excel will "see" it and open it just fine.  There
are several DA's and programs that will let you do this.
                                                        Jeff

uucp:     ...rutgers!yale!slb-sdr!shulman
CSNet:    SHULMAN@SDR.SLB.COM
Delphi:   JEFFS
GEnie:    KILROY
CIS:      76136,667
MCI Mail: KILROY

------------------------------

End of Info-Mac Digest
******************************