CompuServe Archive

This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.

Search Results (51 messages)

#164039 Mac header structs Message #164183
From: Dave Overton Mac Developers Forum · C and Pascal March 16, 1994 7:44 AM
The structure of the Resource fork is documented in Inside Mac Vol 1. Also you might look at Apples docs on the Apple Single/Double formats. Dave Overton
From: Eric Long Mac Developers Forum · C and Pascal March 16, 1994 12:33 AM
Steve, I got it all working. Once I understood that the NMRec was lost once I exited the function, it was all clear. I made the NMRec a global so I could pass it through my event loop. Actually, I restructured everything and I'm much happier with what I've got.…
#164026 Callable Compression Message #164131
From: Steve Siegel Mac Developers Forum · C and Pascal March 15, 1994 10:24 PM
Dave, I'm primarily looking for supported code, but your message got me interested in checking this out. Unless you have this at you fingertips and could easily email it, a pointer to help me locate it at some point would be _more_ than adequate, and appreciated. Thanks very much, Steve
#163911 QD Geometry Message #164105
From: Patrick D. Parker Mac Developers Forum · C and Pascal March 15, 1994 4:57 PM
Thanks for the advice, Peter. I ended up implementing something similar to what you suggested, using arctan to find the angle of the main line. Works great… Patrick
#163615- ModalDialog Filters Message #164070
From: Michael G. Jones Mac Developers Forum · C and Pascal March 15, 1994 1:33 PM
Steve, Thanks for the help.. It worked fine with one exception.. Instead of short*, I used short. When I used short* it gave me the same error (I don't quite understand what the differece is.. but it worked). Is there a resource that I can learn these little "idiosyncracies"? Michael…
#163618- recursion Message #164068
From: Brian Fitzgerald Mac Developers Forum · C and Pascal March 15, 1994 1:24 PM
No, O() notation is not just for time – it can be used for space as well. The Quicksort I posted has a stack usage of O(ln n), which does place an upper bounds on the space required on the stack at any one time.
From: Al Evans Mac Developers Forum · C and Pascal March 15, 1994 11:27 AM
I am pleased to announce the first release of Graphic Elements. Graphic Elements is a paradigm and a library for programming high-performance, framework-independent interactive graphics for the Apple Macintosh. From the viewpoint of the application programmer, a Graphic Element is an independent software object which knows how to image itself…
#Mac header structs Message #164039
From: Andrew Bornyi Mac Developers Forum · C and Pascal March 15, 1994 9:32 AM
Hi! I am a DOS programmer, who wishes to use some of the things which I have created in the much-easier Mac environment (resource fork, in particular). I am looking for the C source for the file structure, so that I can create a utility which will then convert my…
#164021 CodeWarrior problem Message #164032
From: Dan Podwall Mac Developers Forum · C and Pascal March 15, 1994 8:22 AM
"I choose Make menu, and nothing appends: no error message, nothing…" There's a known bug where this happens if MWCRuntime.lib is not in the project. Add it if it is not already there, and please let me know if the problem continues. Dan Podwall Metrowerks, Inc.
#163860 Patch Trap Message #164027
From: Dave Overton Mac Developers Forum · C and Pascal March 15, 1994 7:21 AM
Yep. The parameters depend on the selector. Dave Overton
#163962 #Callable Compression Message #164026
From: Dave Overton Mac Developers Forum · C and Pascal March 15, 1994 7:19 AM
There is also lots of source for LZW on the Internet. If you want, I can send you some I believe. Let me know. Dave Overton
From: Dave Overton Mac Developers Forum · C and Pascal March 15, 1994 7:16 AM
FoxBase from MicroSoft might be a good bet for the DataBase. Runs on both, uses DBase files, etc. Only $99 on the mac if you get it now. Serial Communications on Mac and PC are wildly different. Mac has a standard serial driver which hides the hardware. There are some…
#163917 #CodeWarrior problem Message #164021
From: Antoine ROSSET Mac Developers Forum · C and Pascal March 15, 1994 6:28 AM
Thank you for this sample ! I can make a link with the 68k, but not with the PPC. Maybe it's normal, I think I need to make this link on a PPC Computer? I choose Make menu, and nothing appends: no error message, nothing…
From: Dirk Webster Mac Developers Forum · C and Pascal March 15, 1994 5:28 AM
Desparately seeking someone who has 'been there, seen it, done it' ! I am planning an application which will need to run on both the PC and Mac. The project is a fairly simple database program with some modem comms. I have several years experience on the PC programming in…
From: Steve Stockman Mac Developers Forum · C and Pascal March 15, 1994 2:28 AM
Eric: >>> My string is a Pstring. I copied it into temp because I read something about "not having access to your globals (A5)…" I didn't know what that was telling me, so I thought maybe I should define it within the function.
#163337- TurboPascal 1.1 for Mac Message #163993
From: Joe Sewell Mac Developers Forum · C and Pascal March 14, 1994 11:58 PM
Doug (how about a last name, to follow forum rules?), Unless you only want to write apps for older Macs that aren't running System 7, you DON'T want Turbo Pascal. I haven't seen a single app it created that will run under System 7 (although I'll admit there may be…
#163910 #Callable Compression Message #163962
From: Steve Siegel Mac Developers Forum · C and Pascal March 14, 1994 9:09 PM
Thank you very much Peter. I will pursue both. Steve
#163647- PICT format Message #163954
Apple has a Macintosh Tech Note describing PackBits data structure. If you have access to an index of these notes you can easily find the note.
#163919 PICT format Message #163953
Ben, There are some libraries available for providing APIs for graphics manipulation. These may be of help to you. There is at least one that I can think of advertised in the magazine, but I can't remember it off the top of my head. Look through the last couple issues.…
#163680 #PICT format Message #163919
From: Ben H. Balke Mac Developers Forum · C and Pascal March 14, 1994 4:54 PM
I have C++ classes defined to display PCX and BMP files. I checked under the Graphics forum and IBM file find for PICT and couldn't find any routines. If you have any other information where these might be that would be of great help.
#163874 #CodeWarrior problem Message #163917
From: Dan Podwall Mac Developers Forum · C and Pascal March 14, 1994 4:32 PM
Here's a short assembler example. It has a parameter, a register local variable, a stack local variable, and returns a result: static short f(short n) { register short a; // a in a data register short b; // b on a stack fralloc + // allocate space on stack //…
#163854 CodeWarrior problem Message #163916
From: Dan Podwall Mac Developers Forum · C and Pascal March 14, 1994 4:32 PM
Todd, The destructor takes a short because there is a hidden argument telling it whether it needs to free the object or not. The stuff at the start of the resource is the runtime support for multi-segment resources. main() doesn't have to be at the start, as long as the…
#163901 Callable Compression Message #163912
From: Will Morse Mac Developers Forum · C and Pascal March 14, 1994 3:56 PM
Yes. If you have access to the QuickTime development example code, there's areal simple version of ConvertToMovie available as source code.Its generally very easy to do the basics. If you don't need compression directly from your app, you could save a seried of PICT files, named in the style "Name.0001",…
#163803 #QD Geometry Message #163911
From: Peter Marx Mac Developers Forum · C and Pascal March 14, 1994 3:53 PM
Patrick: What many drawing programs do is draw a filled arc at the end of the line. The arc belongs to a circle whose center is "after the end of" your line. For example, when drawing line AB below, the arc belongs to a circle centered on C: A————-B C…
#163612- #Callable Compression Message #163910
From: Peter Marx Mac Developers Forum · C and Pascal March 14, 1994 3:53 PM
Steve: There are libraries that allow you to use the DiskDoubler or Stuffit compression engines from inside your code. Contact Symantec or Aladdin, respectively. -Peter
Freelance Prog. Wanted Message #163903
From: Terri Turner Mac Developers Forum · C and Pascal March 14, 1994 3:29 PM
Wanted: Freelance programmer proficient in C to complete/fix/upgrade proprietary program creating Word and Superpaint files, proofreading, etc. puzzles of various kinds. Proven track record of reliability and programming skills required. Must be local to NYC. Knowledge of puzzles a plus. Send resume (no phone calls, please) detailing related experience, including…
#163649- #Callable Compression Message #163901
From: Steve Siegel Mac Developers Forum · C and Pascal March 14, 1994 3:18 PM
Will, Thanks for the response. What I'm looking into is to try and compress animation/sound files. Simply using Stuffit gives me 50% give or take. I'm interested in finding some LZW, RLE (or whatever; at this point, haven't found anything) compression that I can call from an app. BTW –…
tcp/ip Message #163892
'seeding.apple.com…just sits there' This happened to me the first time I tried. I did manage to get on in the evening though – maybe the machine goes down/gets too busy during the day? Unfortunately, our Internet access here goes through an HP9000, so all ftps must fit in my disk…
From: Eric Long Mac Developers Forum · C and Pascal March 14, 1994 12:35 PM
Thanks Steve, I know what I sound like and what my code looks like, but that's what happens when you play around with same thing for several hours and get nowhere! I knew something must be missing. My string is a Pstring. I copied it into temp because I read…
#163676 #CodeWarrior problem Message #163874
From: Antoine ROSSET Mac Developers Forum · C and Pascal March 14, 1994 12:17 PM
"See the assembler chapter in the MW C reference document." It's EXTREMELY short… "You have to set up a stack frame to be able to access paramters symbolically." What do you mean by that? Could you give me an example in asm or in C? My documentation about asm is…
Turbo Pascal Message #163873
From: Scott Vanderbilt Mac Developers Forum · C and Pascal March 14, 1994 12:12 PM
Were you ever able to find the discs you were looking for? If not, I think I've got what you're looking for. Let me know.
#163563- #Patch Trap Message #163860
From: Brian Chrisman Mac Developers Forum · C and Pascal March 14, 1994 10:24 AM
Thanks Dave and Steve! does this mean i have to worry about which parameters are on the stack depending on which Print Manager call is being made? brian.
#163584- #CodeWarrior problem Message #163854
From: Todd Blanchard Mac Developers Forum · C and Pascal March 14, 1994 9:06 AM
>>It looks to me like you are trying to use large code model in a code resource. 32-bit relocations are not supported in code resources, so you need to use small model. Let me know if that's not the problem. I apologize for the fact that the environment allows you…
#163678 SCSI-Interface Message #163835
From: Dave Overton Mac Developers Forum · C and Pascal March 14, 1994 8:34 AM
The Developers CD has a sample Disk Driver in Progress. Dave Overton
#163064 Help PICT from screen Message #163806
From: Burt Johnson Mac Developers Forum · C and Pascal March 14, 1994 3:12 AM
Will CameraMan do the job for you? It captures the screen in live action to a movie file. – Burt
From: Steve Stockman Mac Developers Forum · C and Pascal March 14, 1994 2:40 AM
Eric: >>> memcpy( tempStr, gNotifyStr, strlen(gNotifyStr) ); > err = NMInstall( (NMRecPtr) &myNote); RemoveQueue( &myNote ); … Can you please tell me why this *^&@# thing won't work!
QD Geometry Message #163803
From: Patrick D. Parker Mac Developers Forum · C and Pascal March 14, 1994 2:13 AM
Given 2 points in global QuickDraw coordinates (originPt, terminalPt), I would like to draw an arrow. For a simple line, I would do the following: MoveTo(originPt.h, originPt.v); LineTo(terminalPt.h, terminalPt.v); Getting the correct angle in QuickDraw coordinates for the "head" is what I'm wondering about… The terminalPt is the origin for…
#163227- CodeWarrior problem Message #163779
From: Brian Fitzgerald Mac Developers Forum · C and Pascal March 13, 1994 11:29 PM
I got internal compiler errors on several lines of one program I was porting. The workaround was to break down the (not very complex) expression into several lines of subexpressions using explicit temporaries – and of course to send a bug report with a way for them to repeat this…
#163565- #Saving window location Message #163768
From: Eric Long Mac Developers Forum · C and Pascal March 13, 1994 10:15 PM
Wayne & Tryg, Thanks for your input. I will definitely use a Prefs file. It would be unusual to have a program that is redistributed among different users that comes up with, say the window way off to the right. Better to let that info be in a prefs file.…
#163647- PICT format Message #163680
From: Syndesis Mac Developers Forum · C and Pascal March 13, 1994 1:11 PM
I've written PICT bitmap decoders for non-Mac platforms. PackBits uses a form of run-length encoding that's used in MacPaint pictures, for example… and you should be able to find code for that in many places on CompuServe's libraries. In short, if bytecode's high bit is set, then repeat the next…
#163351 Adobe Ill. plug-ins Message #163679
From: Syndesis Mac Developers Forum · C and Pascal March 13, 1994 1:10 PM
What sort of AI plug-ins are you writing?
#163299 SCSI-Interface Message #163678
From: Syndesis Mac Developers Forum · C and Pascal March 13, 1994 1:10 PM
I haven't picked up Apple's SCSI developer kit yet. Do you know of other good sources of direct SCSI programming examples?
#163616- CodeWarrior problem Message #163676
From: Dan Podwall Mac Developers Forum · C and Pascal March 13, 1994 1:10 PM
"Could somebody upload here the CodeWarrior 68k debugger patch for version d4 or d5?" No debugger patch has been released. There will be an updated debugger on the upcoming DR2 CD. "P.S. Is the asm complete? Does it recognize 68020 addressing mode? Why do I have this error : "Stack…
#163064 Help PICT from screen Message #163620
From: Richard Unger Mac Developers Forum · C and Pascal March 13, 1994 4:51 AM
1. Declare a variable of type BitMap (or PixMap, if you're copying in colour) 2. Call Copybits with the source as ScreenBits, and the destination your bitmap. 3. Call OpenPicture 4. Copy the bit whereever they are meant to go 5. Call ClosePicture 6. Save the picture to disk (inside…
Adobe Ill. plug-ins Message #163351
From: Rick Johnson Mac Developers Forum · C and Pascal March 10, 1994 9:59 PM
Anybody here writing Adobe Illustrator 5.0 plug-in filters? If so, I'd like to compare notes with you.
SCSI-Interface Message #163299
From: john elemans Mac Developers Forum · C and Pascal March 10, 1994 1:54 PM
Steve, Sorry I took so long to respond. There definitely is a sequence of commands. They are not the ones that you have listed, though. First, if you are not sure of the state of the device, then you may need to do a request sense etc., but you should…
#Help PICT from screen Message #163064
From: Wade Schuette Mac Developers Forum · C and Pascal March 9, 1994 4:38 AM
Can anyone point me to a way to grab a sectio of the sceen in Pascal (or C) and put it out as a PICT file on disk? Besides screen capture one-shot utilities, I mean, as I'm generating an animation that will have thousands of frames. Thanks! Wade
SCSI-Interface Message #162993
From: Axel Schukey Mac Developers Forum · C and Pascal March 8, 1994 3:56 PM
I suggest that you first do the Inquiry-Command to recieve what kind of device is behind the SCSI-Id (may be hard disk or removable disk or sequentiell device e.t.c). Than you need to analyse the inquiry data before you can send a request command. May be some devices can't fullfill…
#41965 Spooling a PICT file Message #42170
From: Daniel Sefton Mac Developers Forum · C and Pascal March 15, 1991 8:00 AM
Steve, I saw Bob Dugger's answer to your spooling PICT question. It's Friday now, so maybe your problem is solved. If you still have questions drop me a note and I'll post my version of Think C code that spools picts to and or from a disk. &Daniel Read action…
#41965 Spooling a PICT file Message #42026
From: Bob Dugger Mac Developers Forum · C and Pascal March 13, 1991 9:30 PM
You haven't got this to work yet?? I'll try to catch you at work Thurs or Fri. I've tried it and it works fine. Bob Read action !

Page 1 of 2