This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (51 messages)
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
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.…
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
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
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
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.
Graphic Elements Release
Message #164055
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
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…
"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.
Yep. The parameters depend on the selector. Dave Overton
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
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…
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…
#Help – PC/MAC coding
Message #164019
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…
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
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…
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.
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.…
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.
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 //…
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…
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",…
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
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
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
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…
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…
"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
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
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
>>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…
The Developers CD has a sample Disk Driver in Progress. Dave Overton
Will CameraMan do the job for you? It captures the screen in live action to a movie file. – Burt
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
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
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
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
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…
What sort of AI plug-ins are you writing?
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
"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…
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
Anybody here writing Adobe Illustrator 5.0 plug-in filters? If so, I'd like to compare notes with you.
SCSI-Interface
Message #163299
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
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
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…
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…
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