Old source code to run HyperCard, SuperCard or Oracle Media Objects XCMDs and XFCNs on Classic MacOS and Carbon.
C++ C Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Carbon Callbacks
Carbon xCmd
HC 1.2 Callbacks
OMO Callbacks
!Docs.txt
.gitignore
FakeHandles.c
FakeHandles.h
HelloWorld.rsrc.sit
KExternalCall.cpp
KExternalCall.h
KExternalCallback.h
MacExternalCall.cpp
MacExternalCall.h
MachOCFMGlue.c
MachOCFMGlue.h
Main.cpp
README.md
XFromAppUPPs.h
make_cw.mcp.sit

README.md

XFromApp

Old source code to run HyperCard or SuperCard XCMDs and XFCNs on Classic MacOS and Carbon. Also includes source code for the glue code you would nead to compile an XCMD or XFCN, like shipped by Apple and Silicon Beach in HyperXCmdLib etc.

For the original Readme file with documentation, see !Docs.txt.

This is the original 2000s-era source code, also seen under the name "C++ XFromApp". The only changes made were that I checked in compressed copies of the CodeWarrior projects and resource files, in the hope that their resource forks will thus survive the checkin into git.

Note on FakeHandles

If you are looking for a way to emulate Mac Handles on another platform that doesn't have a native implementation, there is a newer version of that code as part of my ReClassicfication project at https://github.com/uliwitness/ReClassicfication.

License

In case there is any doubt, I'm re-releasing this code under my customary zlib license, see below. This supersedes any license statements that may be in the source files itself.

Copyright by Uli Kusterer.

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

   1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.

   2. Altered source versions must be plainly marked as such, and must not be
   misrepresented as being the original software.

   3. This notice may not be removed or altered from any source
   distribution.