I developed a program in VC++ that can run animations in a CView-derived window. Currently the animations are saved in my own custom document type via serialization. Is there a way to programmatically run the animation and generate an internet-compatible version of the output (e.g. in AVI or SWF format)? I can use a screen video capture product to do it manually but doing it programmatically would be nice.