Thread
Learning Program Development (System 6, of course :P)
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
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.
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.
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.
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.