Common Dialog Boxes problem

This is a discussion on Common Dialog Boxes problem within the Windows Programming forums, part of the Platform Specific Boards category; Try this code and try to select "save as txt" from the file menu. Every time you try this the ...

Thanks for replying, the problem was that I hadn't initialised the two arrays (path and filename), but I still have a problem: It still doesn't actually save the file. Is there something I'm doing wrong with the file output?

I didn't actual compile the code. But I think I see the problem. Doesn't GetSaveFileName() give you a full path? If so you are appending the full path to the path, then adding a second extension to it. Double check that.