Home▸
Forums▸
Learning Program Development (System 6, of course :P)▸
Learning Program Development (System 6, of course :P)
Thread
Learning Program Development (System 6, of course :P)
Learning Program Development (System 6, of course :P)
Development 19 posts
Dec 17, 2008 — Dec 18, 2008
What do I need to start? I want to dabble in a little bit of C, might be good for me...
Preferably links, please, I hate having to hunt down individual bits of software.
regards,
tm512
EDIT: One thing that might be a good experiment would be a classic program that, when run in OS X, calls to some 68k trap and set the color depth. to 1-bit, o' course. :beige:
Preferably links, please, I hate having to hunt down individual bits of software.
regards,
tm512
EDIT: One thing that might be a good experiment would be a classic program that, when run in OS X, calls to some 68k trap and set the color depth. to 1-bit, o' course. :beige:
http://68kmla.org/forums/viewtopic.php?t=8225&start=0&postdays=0&postorder=asc&highlight=inside+macintosh
Alas I've not found the last MPW from Apple to be good at compiling for System 6. I've gone back to THINK C5.0
Alas I've not found the last MPW from Apple to be good at compiling for System 6. I've gone back to THINK C5.0
Yeah, I got that I while back. Is my 1-bit plan plausible?
Also, maybe a link to ThinkC?
http://developer.apple.com/documentation/mac/QuickDraw/QuickDraw-272.html
Apparently it's called "SetDepth()".
But you might not like the answer to "HasDepth()".
Alas, no link to THINK C. I bought mine full price years ago.
Apparently it's called "SetDepth()".
But you might not like the answer to "HasDepth()".
Alas, no link to THINK C. I bought mine full price years ago.
Bah. I'll force it. See my thread earlier... Apparently some games set the color depth back to 1-bit.But you might not like the answer to "HasDepth()".
Anyway, maybe you can help me. Maybe it would be easiest in PASCAL, although it doesn't matter as I have no experience in either C or PASCAL.
I want a dialog box to popup with two buttons, one saying "I'm feeling B&W" and another saying "I'm feeling Colorful". a PhD shouldn't be required to figure out what I want those buttons to do.
Well this is nice!
I have ThinkC 5.0 downloaded. Time to try and get started tomorrow. I believe school shall be cancelled again cause of snow. Any tips would be much appreciated, I haven't done C past command line apps. [^] Noob on board!
EDIT: ThinkC runs fine in vMac and has sample code.
I have ThinkC 5.0 downloaded. Time to try and get started tomorrow. I believe school shall be cancelled again cause of snow. Any tips would be much appreciated, I haven't done C past command line apps. [^] Noob on board!EDIT: ThinkC runs fine in vMac and has sample code.
Hm, if I wanted to do some development too, where could I find ThinkC? Or is MPW sufficient (ie, does it include a compiler)?
-dav7
-dav7
Check on Apple's web site. All their old development tools, pages, and downloads are still there.Hm, if I wanted to do some development too, where could I find ThinkC? Or is MPW sufficient (ie, does it include a compiler)?
-dav7
The basic problem with MPW, at least the version from Apple's site, is that it requires 7.5 (or maybe 7.1 with some extensions). This makes it somewhat more difficult to test applications for System 6 because you essentially have to use it as a cross compiler. As such, something like THINK C or THINK Pascal are probably better options.
Alas, I've tried compiling on one system and running the result on System 6 without success.This makes it somewhat more difficult to test applications for System 6 because you essentially have to use it as a cross compiler.
I found Think C 5 on Greiner du Mac (sp?)
I'm really gonna need help.
Do you need help with C, Macintosh programming, or maybe CPR?
1. THINK C has a BullsEye project, it provides the raw basics, an event loop, a menu and a window. Hack that till it does what you want.I'm really gonna need help.
2. Have you visited http://www.mactech.com/? They used to have loads of tutorials.
Okay, thanks. I can't find ANY reference to setDepth in Think Reference.
Tengo una problema...
My little app is supposed to restart the computer with the Restart(); trap. I get
My little app is supposed to restart the computer with the Restart(); trap. I get
Code:
undefined: Restart();
As a suggestion, it's a really, really, really bad idea to have some random application restarting the operating system, unless of course you are writing a program for Microsoft Windows.Tengo una problema...
My little app is supposed to restart the computer with the Restart(); trap. I get
Code:undefined: Restart();
I could always port it.As a suggestion, it's a really, really, really bad idea to have some random application restarting the operating system, unless of course you are writing a program for Microsoft Windows.Tengo una problema...
My little app is supposed to restart the computer with the Restart(); trap. I get
Code:undefined: Restart();
Anyway, this also happened when I tried using setDepth.
I just had to add MacTraps to my projecct and it linked, and ran...
Now it's time to find out how to use setDepth.
Now it's time to find out how to use setDepth.