Opening/Reading a file from windows explorer.

Recently I have been trying to make a save and load system for the program I am making. For that reason, I thought that the proper and more useful way would be to use the windows explorer to save and load the files. Whilst looking for ways on how to do so I've mainly found a bunch of ways on how to simply open windows explorer. Which isn't really helpful since I'm looking for a way to open and extract information from a file, similar to how paint, notepad, and a bunch of other programs do it.

This is what I have to just open explorer.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>
#include <Windows.h>
#include <ShlObj.h>
#include <tchar.h>
int main() {
	CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);

	//Method 1 of opening explorer
	//system("explorer /select, C:\\");

	//Method 2 of opening explorer
	//ITEMIDLIST* path = ILCreateFromPath("C:\\");
	//if (path) {
	//	std::cout << "Path opened\n";
	//}
	//SHOpenFolderAndSelectItems(path, NULL, NULL, NULL);
	
	//Method 3 of opening explorer
	//ShellExecute(NULL, "open", "C:\\ NULL, NULL, SW_SHOWDEFAULT);
	

	std::cin.get();
	return EXIT_SUCCESS;
}
Topic archived. No new replies allowed.