• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Learning Program Development (System 6, of course :P)

MrMacPlus

Well-known member
What do I need to start? I want to dabble in a little bit of C, might be good for me... :p

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:

 

MrMacPlus

Well-known member
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. :)

 

MrMacPlus

Well-known member
Well this is nice! :D 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. :D

 

dav7

Active member
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

 

Dog Cow

Well-known member
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.

 

II2II

Well-known member
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.

 

porter

Well-known member
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.

 

MrMacPlus

Well-known member
Okay, thanks. I can't find ANY reference to setDepth in Think Reference.

 
Last edited by a moderator:

MrMacPlus

Well-known member
Tengo una problema...

My little app is supposed to restart the computer with the Restart(); trap. I get

Code:
undefined: Restart();
 

porter

Well-known member
Tengo una problema...
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.

 

MrMacPlus

Well-known member
Tengo una problema...
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.
I could always port it. :p

Anyway, this also happened when I tried using setDepth.

 

MrMacPlus

Well-known member
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.

 
Top