The code for DirectX can be found in the DSPACK software
at http://www.progdigy.com