I don't know. I never had any problem with default file name /extenstion.
Try to pass in the same extension (as default) that your default file name has:
Code:
CFileDialog writeDialog2(FALSE, "bmp", "123.45.bmp",