I made an open dialog using the OPENFILENAME. I'm wandering how to get the file extention when the user selects a file.
thanks.
I made an open dialog using the OPENFILENAME. I'm wandering how to get the file extention when the user selects a file.
thanks.
From the MSDN help for OPENFILENAME...
lpstrFileTitle
Pointer to a buffer that receives the file name and extension (without path information) of the selected file. This member can be NULL.
... so supply a buffer and it will tell you.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.