Although XCMDGlue is as XObject, you do not need to use it in the same way as normal XObjects -- Director takes care of the usual XObject mechanics behind the scenes whenever you open or close a file containing XCMD or XFCN resources. As a result, many XCMDs and XFCNs can be used almost transparently with Director. Once the file containing the XCMD has been opened (with a call to openXLib, just as with XObjects) the functions it provides can be called just like any other Lingo routines:
openXlib "blah XCMD"
blah "explode", "Seattle"
XCMDs and XFCNs do not support standard XObject methods such as mNew,
mDispose and mDescribe.
For more info on using XCMDs with Director, see Appendix A of the "Using Lingo" manual.