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