How to convert any document to SWF format using C++?