Well inside the windows operating system there are predefinided
dialog boxes. We can use it freely with little effort.
Think that you have to get a input file name or file path. The traditional
way of doing this is parsing the command line arguments.But here we are in win32 , so we should use GetOpenFileName
simple GetOpenFileName just getting an pointer to a data structure
OPENFILENAME that defined on Commdlg.h header file.
so we just create that structure on the memory and passing pass it's
pointer as an argument to the GetOpenFileName function.
and after that returns it normally fills up the OPENFILENAME data structure. So lpszFileName contains the path and we just simply
display that using a MessageBox.