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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -