I have one page that shows links, and I have some text data. How can I make using C++ CGI that by clicking on hyperlink "Save As" dialog will appear and certain amount of my text will be saved with user-defined path and name to the file on the users filesystem. 

Actually, main question is how to show "Save as" dialog. After it, I think, everything will be easy.