MSDN open dialog box sample code
问题 So I'm trying to run and compile this piece of sample code from MSDN (opening a dialig box): http://msdn.microsoft.com/en-us/library/ff485843(v=vs.85).aspx My compiler gives an error: main.cpp: In function 'int wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)': main.cpp:19:9: error: 'IFileOpenDialog' was not declared in this scope What I get from the documentation is that CoInitializeEx function should link against the necessary COM libraries and import the needed functions. Though I am totally