Windows API C++ | Problem with GetOpenFileName / OPENFILENAME
I’m new to C++ I need to return the path to the file that the user has selected. For this i use winapi -> OPENFILENAME. When i try to return file path, i get only 1 character ("C" for disk C). My code: LPWSTR fileBuffer = new wchar_t[256]; OPENFILENAME ofn = { 0 }; ofn.lStructSize… Read More Windows API C++ | Problem with GetOpenFileName / OPENFILENAME