Useful macro, instead this:
hr = CoCreateInstance(
__uuidof(FileOpenDialog), NULL, CLSCTX_ALL,
__uuidof(IFileDialogCustomize), reinterpret_cast<void**>(&pFileOpen));
we can write:
hr = CoCreateInstance(
__uuidof(FileOpenDialog), NULL, CLSCTX_ALL,
IID_PPV_ARGS(&pFileOpen));
No comments:
Post a Comment