c++ - In Which Library IFileDialog is Located -
now i'm writing code
ifiledialog *pfd = null; hresult hr = cocreateinstance(clsid_fileopendialog, null, clsctx_inproc_server, iid_ppv_args(&pfd)); after compiling error appeared; "ifiledialog not declared in scope"
what library of class ??
you don't need know library implements it. com interface invoke call cocreateinstance. system rest. looks implementing com server in com registry , instantiates object.
in order compile need include shobjidl.h, , define version macros appropriately. need
#define _winnt_win32 0600
Comments
Post a Comment