| Click here to select a new forum. |
| Learning Program Development (System 6, of course :P) |
Posted by: MrMacPlus on 2008-12-16 16:26:58 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:
|
Posted by: porter on 2008-12-16 16:53:29 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
|
Posted by: MrMacPlus on 2008-12-16 16:56:16
http://68kmla.org/forums/viewtopic.php?t=8225&start=0&postdays=0&postorder=asc&highlight=inside+macintosh Yeah, I got that I while back. Is my 1-bit plan plausible?
Also, maybe a link to ThinkC?
|
Posted by: porter on 2008-12-16 17:20:46 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.
|
Posted by: MrMacPlus on 2008-12-16 19:05:09
But you might not like the answer to "HasDepth()". Bah. I'll force it. See my thread earlier... Apparently some games set the color depth back to 1-bit.
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. 🙂
|
Posted by: MrMacPlus on 2008-12-16 20:33:09 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. 😀
|
Posted by: dav7 on 2008-12-17 03:22:58 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
|
Posted by: Dog Cow on 2008-12-17 09:48:20
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 Check on Apple's web site. All their old development tools, pages, and downloads are still there.
|
Posted by: II2II on 2008-12-17 11:27:53 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.
|
Posted by: porter on 2008-12-17 12:22:49
This makes it somewhat more difficult to test applications for System 6 because you essentially have to use it as a cross compiler. Alas, I've tried compiling on one system and running the result on System 6 without success.
|
Posted by: MrMacPlus on 2008-12-17 15:00:03 I found Think C 5 on Greiner du Mac (sp?)
|
Posted by: MrMacPlus on 2008-12-17 17:12:47 I'm really gonna need help.
|
Posted by: II2II on 2008-12-17 17:39:28 Do you need help with C, Macintosh programming, or maybe CPR?
|
Posted by: porter on 2008-12-17 17:58:44
I'm really gonna need help. 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.
2. Have you visited http://www.mactech.com/? They used to have loads of tutorials.
|
Posted by: MrMacPlus on 2008-12-17 19:38:34 Okay, thanks. I can't find ANY reference to setDepth in Think Reference.
|
Posted by: MrMacPlus on 2008-12-17 21:43:21 Tengo una problema...
My little app is supposed to restart the computer with the Restart(); trap. I get
undefined: Restart(); |
Posted by: porter on 2008-12-17 22:05:25
Tengo una problema...
My little app is supposed to restart the computer with the Restart(); trap. I get
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.
|
Posted by: MrMacPlus on 2008-12-18 10:06:17
Tengo una problema...
My little app is supposed to restart the computer with the Restart(); trap. I get
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. I could always port it. 😛
Anyway, this also happened when I tried using setDepth.
|
Posted by: MrMacPlus on 2008-12-18 11:08:02 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.
|
| 1 |