I am working on a WIN32 (not MFC) project. Currently it uses the default XP and earlier file dialogs. In attempting to add the option, under Win7/Vista, to use the new-style file dialogs, I have come to a stumbling block.
The only code examples I can find come from here:
MSDN's Common Item Dialog article
The event handler creation code looks (with more meaningful variable names) like:
HRESULT result;
[...]
IFileDialogEvents *fileDialogEvents = NULL;
result = CDialogEventHandler_CreateInstance(IID_PPV_ARGS(&fileDialogEvents));
but the function CDialogEventHandler_CreateInstance does not exist. Others have complained in various MS forums but no resolution has ever been reported.
Searching *.* for CDialogEventHandler_CreateInstance in
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
finds nothing.
I need to capture the result of the user changing the "Files of type" drop-down.
I must also add a button and capture user's button click but that is the next step.