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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -