I have following function call:
sparseAct =new QAction(QIcon(":Icons/icons/sparse.jpg"),tr("Sparse Reconstruction"),this);
connect(sparseAct, SIGNAL(triggered()),this, SLOT(sparsereconstruction()));
and
void UAVgeoreferencer::sparsereconstruction(){
ShellExecute(NULL, L"open", L"C:\\WINDOWS\\system32\\cmd.exe", L"/C C:\\Images\\sparseRecon64.bat", L"C:\\Images\\", SW_SHOWNORMAL);
}
When I do this I get error like:
uavgeoreferencer.obj:-1: error: LNK2019: unresolved external symbol __imp_ShellExecuteW referenced in function "private: void __cdecl UAVgeoreferencer::sparsereconstruction(void)" (?sparsereconstruction@UAVgeoreferencer@@AEAAXXZ)
Can anyone tell me what is the problem and how can I solve it??
Shell32.liblibrary too in order to use itsShellExecutefunction, or you need to useQProcessto execute thesparseRecon64.batscript.