In article <com>,
Paul Miller <com> wrote:
I suppose you first try to do it from another MachO app. That would
very likely involve either popen(), or (harder, but more powerful and
doesn't freeze your app until it's done) exec() and fork().
Once you have that working, use CFBundleGetFunctionPointerForName() to
get function pointers to the MacOS X-native ANSI calls and call those
from your CFM application.
Since MacOS 9 doesn't have stdin, stdout, command-line arguments and
the likes, CodeWarrior fakes all those for CFM apps using MSL
("Metrowerks Standard Library", fka "Modena Standard Library"). You have
to load the real MachO calls using CFBundleBlahBlahBlah() since you
can't mix-and-match MSL and MacOSX's BSD ANSI library.
-- M. Uli Kusterer