This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (110 messages)
Bitmaps in PICT
Message #132699
From:
Douglas McCallum
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 3:03 PM
I am trying to create EPSF Files from my App. When I rotate text I use an offscreen bitmap to do the rotation. When I try to create the PICT I get rubbish. I have tried using BitMapToRegion, but have problems with the ~@k limit, and the PICT is black…
From:
Mario Vano
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 2:52 PM
Kevin: MPW's automatically built make files certainly do NOT behave as you describe. It generates a separate dependency line for each c++ source file and only compiles the ones that have changed. I just confirmed that again to make sure I wasn't imagining it. That facility works perfectly for all…
From:
Simon DeDeo
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 2:46 PM
Boy, are you lazy! . Good luck!
porting file i/o
Message #132682
From:
Rick Martin
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 1:36 PM
Hello, I am porting some C code to the MAC and having difficultly with the file i/o functions (write, lseek, open, read). They are not returning errors or setting errno, but they aren't performing the requested operation either. I've written small test programs that work fine, as soon as I…
From:
Stephane Desnault
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 11:40 AM
Simon, That's precisely what I'd like to avoid… A charting package is _not_ a small set of routine if it's to be done properly! I'm involved in a cross platform development, and while this kind of tools exists in the Win31 world, I don't seem to find them on the…
From:
Simon DeDeo
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 11:33 AM
Quickdraw will do all your text, rectangles etc like a dream, and bar graphs…well, you *could* write your own routine…
From:
David Ramsey
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 11:10 AM
Kevin, Welcome to MPW, the development environment where _you_ provide the smarts. You need to write a "make" file for your C++ project that includes the proper "dependency rules." These rules can check file dates to see if a given object file is "later" than its source file. You then…
From:
Douglas Yoon
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 6:37 AM
Fritz: Thanks for the reply. No, just compiling the fopen() code would not help. The number 20 seems to be hardcoded throughout the stdio library. For instance, sprintf uses the file id 20, so when open() uses this id, the file is not written to. Instead lots of memory gets…
#Help!
Message #132614
From:
Stephane Desnault
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 21, 1993 4:23 AM
Help! (and also hi..!) I'm looking for a business graphic library to program in C or C++ on the Mac. Professionnal level of course, able to display and print the usual types of business graphs (bar, pie, line, scatter, etc…) as well as lower level items such as lines, rectangles,…
#C++ and MPW
Message #132589
From:
Kevin Tieskoetter
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 20, 1993 11:27 PM
When I compile a C++ project in MPW, it always does it from scratch — it compiles _all_ of the files, whether they have been modified or not. It's as if CFront was not saving the object files…is there any way of getting it to do this? I really don't…
GetKeys()
Message #132582
From:
Verne Arase [LUC]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 20, 1993 10:46 PM
>Can someone please please please tell me why this doesn't wurk?!? You need to: return(theKeys[theKey >> 3] >> (theyKey & 0x07) & 1); As you can see from the code, it's a packed boolean array with the bits in each byte numbered from the low order to the high order…
Equiv of SizeOf in C?
Message #132581
From:
Verne Arase [LUC]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 20, 1993 10:46 PM
>What's the difference in a size_t and a long? For Mac Cs, there is none.
d e v e l o p CD
Message #132580
From:
Verne Arase [LUC]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 20, 1993 10:46 PM
>Yes it's on the Bookmark CD 14, June 1993. Try this path- Bookmark CD >14:Documentation & Samples:MPW Interfaces 7.1:Interfaces:CIncludes: Thanks … don't know how I missed it.
From:
Robert S. Mah[OSB]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 20, 1993 11:55 AM
===> Do you queue without allocating memory (so that it can be called at GrowZone time)?
From:
Robert S. Mah[OSB]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 20, 1993 11:51 AM
Bill, Hmm, I wouldn't be as kind as you when descrbing TIFF. Words like "abomination" and "from hell" come to mind. 🙂 Hope everything goes well with your project. Cheers, Rob
From:
Steve Stockman
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 20, 1993 4:00 AM
Joe: Is the A6 chain still valid during GrowZone? I know that the Think C Debugger loses track of the call chain during the GrowZoneProc, but I haven't actually studied it in TMON to determine whether or not it's the Memory Mgr that's using A6 for something other than a…
From:
Steve Stockman
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 20, 1993 4:00 AM
Rob: >>> We use a combination of your approach (checking to see if it's in the call chain) and queueing segments until the main event loop is reached before it is de-queued.
No, I didn't intend to be harsh – tifflib's rather a monumental piece of work… Of course, TIFF itself is "a real piece of work"… |-> No pending projects, though some vaguely discussed. Probably no MacWorld. I have to get this Group 4 stuff (and the even larger mess it's…
From:
Robert S. Mah[OSB]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 11:50 PM
Joe, Well, one comment I'd like to make is the idea of "defered segment unloading". We use this to clean out the heap at a later time when it is safe to do so. We use a combination of your approach (checking to see if it's in the call chain)…
From:
Robert S. Mah[OSB]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 11:43 PM
Well, it's not a Mac vs the world thing with regard to the tifflib stuff. More like a "UNIX is best and everything else is for wimps" kind of thing. tifflib has problems compliling on DOS as as well as the Mac. Hmmm, seems a bit harsh there…Sam Leffer is…
From:
C.K. Haun
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 11:00 PM
Gary, You can do edit line length restriction either in a modal dialog filter or when ModalDialog returns a hit in the edit line. In the filter is cleaner since the extra character never actually shows up, you can look at the example DialogBits 2.0.1 on a developer CD if…
From:
Steve Budrys
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 4:59 PM
"I suspect just about every Mac Users' Group in the country has a "hunter/gatherer," "Disk Czar," or equivalent who download practically everything here." That's for sure. I've had more requests for a program to be on a given "disk of the month" than I've had shareware payments!
#Code Segment Mgmt …
Message #132383
From:
Joe Terry |Manhattan|
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 4:53 PM
Hi y'all, The following code is used to manage code segment traffic in a large THINK C with objects application. We use the TCL and the Prepare() class libraries. I would like anyone's comments on this code. Anything appreciated. Your payment in full is the code itself. Please maintain the…
#MPWC & fopen
Message #132376
From:
Fritz Anderson
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 3:25 PM
You could do this by editing and recompiling the fopen() code in the MPW stdio library, but, alas, they don't provide source. That one might need more than 20 files open simultaneously is unlikely, but I assume you have explored alternatives (such as saving your offset into an open file…
From:
Jim Chandler Jr.
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 3:25 PM
>As a side note, though, assuming my MIDI project sees light, it won't have copy protection. I will not write anything that's copy protected in ANY way ever again. I agree 100%. I've never used any copy protection, and never plan to do so. I was just discussing the "nudging…
Yes, if I get it converted you are certainly welcome to a copy. And if there's time I'll even try to make a contribution to the libtiff. It irks me to see Macs given short shrift there (though, really, who is all that interested in Group 4? Hardly anybody, including…
From:
Robert S. Mah[OSB]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 1:53 PM
Bill, Glad you got hold of the g3states.h file. My reaction to Rez was exactly the same as yours, maybe even a bit stronger :-). It was that prospect of typing it all in that got me down. Good luck though. P.S. If you do finally get g3states.h into a…
From:
Rich Parker
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 10:58 AM
David, "Perhaps he has been looking at Claris Works for Macintosh. :-)" Or better yet, Userland Frontier driving _all_ of our applications with scripts. 🙂 -rich-
From:
David Turnedge
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 8:26 AM
Simon, I always took it for granted that expressions such as that (eg one's that may appear in a spreadsheet cell) were parsed and referred to an internal dictionary of functions. Dave.
From:
David Turnedge
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 8:26 AM
Anne, >> I was just reading Macintosh Programming Secrets and there is a section in on of the chapters called "Select, then act." Traditional computer operating systems use "act, then select."
From:
David Turnedge
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 8:26 AM
Dennis, Yes… I think t way Bill Gates who suggested (correct me if I'm wrong) that future apps will operate behind the scenes… users will manipulate the data they want to in a little window… the app will operate almost invisibly until s/he wishes to invoke a certain command. Perhaps…
From:
Bill Monk
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 19, 1993 12:52 AM
Thanks, Rob. One of the other folks here sent it to me already, though. I don't have a "real" internet address, and the msg limit would be a hassle for you anyway. The file is simple, though long. I hope there's an easy way to Rez it into a resource.…
From:
Robert S. Mah[OSB]
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 18, 1993 12:55 PM
Bill, ====> Do you have a copy of g3states.h? That would get me over a very big hump….
3D G-Worlds
Message #132245
From:
Jerry Isdale
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 18, 1993 12:11 PM
John, pop over to the CyberForum (GO CYBERFORUM) and search the libs for keyword MAC. There are a couple freeware things up there (beta releases or such) and a demo of the commercial ViviStar Qd3d library (for Think C/TCL) ViviStar Consulting can also be reached directly at 73067,542 or 7015E…
From:
Rich Parker
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 18, 1993 11:52 AM
Peter, "I was just surprised to discover you were from the industry." I spent several years designing new MOS LSI devices, including the world's first binary floating-point processor (the AMD Am9511). I enjoyed the experience and learned a lot about the technology and also the "black art" of semiconductor manufacturing.…
From:
Rich Parker
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 18, 1993 11:52 AM
Joe, "Turn the lights up! " Even using a hologen light can't fix the lack of discrimination of tiny artifacts in my old eyes. Unfortunately, I had to get a magnifying glass to see the decimal in the ad. I think that the typeface Motorola used was just too "cutesy"…
From:
Rich Parker
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 18, 1993 11:52 AM
Simon, "I'm looking for a stand alone application. It looks like I'll have to do it the hard way…" Building an interpreter for such expressions shouldn't be very difficult. You might give the spreadsheet example in my book a look. It includes code for an expression parser that handles simple…
From:
Peter H. Teeson
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 18, 1993 8:31 AM
Rich, I absolutely agrre with you…I was just surprised to discover you were from the industry. (Plus you are into MIDI! small world to coin a phrase) I used to work on CIM software for making semi-conductors and had the good fortune to visit Japan a number of times. Also…
From:
Joe Laffey
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 10:58 PM
>>I've already be chastened by several others for the slip of my eye…
From:
Joe Laffey
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 10:39 PM
Rush– thumbs up. PCs– thumbs down. Joe
From:
Joe Sewell
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 9:47 PM
–> The only technical challenge is board placement of the cooling tower for optimal heat dissipation.
#Nudging the user
Message #132173
From:
Joe Sewell
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 9:47 PM
Well, like I said before, Jim, a download count really doesn't give you ANY indication whatsoever of how many people have even looked at it. I suspect just about every Mac Users' Group in the country has a "hunter/gatherer," "Disk Czar," or equivalent who download practically everything here. They may…
MyArray[ long ]
Message #132165
From:
John Jeppson
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 6:43 PM
In C and/or C++ is there any limitation on the index of an array? Can the index be larger than an "int"? Can it, for example, be a long on systems where a long is larger than an int? This would mean, of course, that the compiler would have to…
From:
Tom Nalevanko
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 4:33 PM
Simon, We have a higher level function in both our VIP-C and VIP-BASIC products called _evaluate_expression. It works similarly to what you have described. Here is a description of the function. _evaluate_expression Use _evaluate_expression to evaluate an expression given as a character string. SYNTAX void _evaluate_expression (char expression[], char nb_param,…
From:
Simon DeDeo
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 4:01 PM
Thanks alot, Bob, I'll check it out!
From:
Bob Delaney
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 1:40 PM
Simon, In the July, 1992 issue of MacTutor (now MacTech) magazine is an article by Kevin Raner called "A Compiler for Math Equations". At run time this C program allows the input of a mathematical function in string form. The function is then compiled into machine code in the heap…
From:
Simon DeDeo
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 12:55 PM
Thanks, Rich, but I'm looking for a stand alone application. It looks like I'll have to do it the hard way…
From:
Simon DeDeo
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 12:54 PM
I'm writing a program that integrates a function. The user has to be able to enter a complex expression, (cos(sin(x^(2^log(x)))) or something like that, and I'm too lazy to figure out an algorithm to analyze it. In BBC BASIC, you could write, S$="(cos(sin(x^(2^log(x))))" z=Eval(S$,x,3) And z would equal (cos(sin(3^(2^log(3))))
From:
Rich Parker
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 12:34 PM
Peter, I was obviously oversimplifying the situation, merely to offer a relatively concise response. Of course, all the elements you mention contribute to the cost of manufacturing a device. There is also any labor-intensive work, such as wire bonding (that isn't automated), as well as the cost for testing (which…
From:
Rich Parker
MAUG(R)/Macintosh Developers/Programmers Forum
· C and Pascal
July 17, 1993 12:05 PM
Joe, I've already be chastened by several others for the slip of my eye when reading the Moto ad in MacWeek. It occurred to me at the time that it would be a major achievement to develop a package that could dissipate 85 watts…but I didn't give it much thought.…
Page 1 of 3