I'm trying to get an "Open file" dialog box to open using the following code. When I run the program, however, the "Open file" dialog box does not open.
Edit: This function is, in fact, being called when it is supposed to be.
I'm not really an expert on this, but if the application you are working uses Unicode (I assumed that because you are trying to cast strings into LPWSTRs), you should use GetOpenFileNameW() instead of GetOpenFileNameA(). W is the Unicode version, while A is the ANSI version. Or, you can simply just use GetOpenFileName() without A or W, which is a macro that is defined as the A or W version automatically.