I can use FileSaveDialog (Common Item Dialog) in a VC ++ 2010 application as follows:
IFileDialog *pFileDialog; HRESULT hr = CoCreateInstance(CLSID_FileSaveDialog, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pFileDialog));
but when I put this code in my project, which was converted from VC ++ 6.0 to VC ++ 2010, I get the following error:
"C2787: 'IFileDialog': no โโGUID was associated with this object
I also get a red curve under the macro IID_PPV_ARGS and a floating point error:
"the _uuidof operand must be of the class or enumeration type for which _declspec (uuid ('...')) is specified"
I DO NOT use Common Language Runtime Support (/ clr) support in any project.
How to associate a GUID with my object?
windows visual-c ++ winapi visual-c ++ - 2010 com
Joe moslander
source share