I'm using GetOpenFileName dialog in my console application. The problem is it opens under the console window (the first time).
I suspect the reason could be that the handle for the dialog is NULL (desktop?). However, I haven't managed to get the handle of the console to fill it in. GetStdHandle returns a HANDLE, and GetOpenFileName requires a HWND?