SHELLEXECUTEINFO boxmake;
 ::ZeroMemory(&boxmake, sizeof(SHELLEXECUTEINFO));

 boxmake.cbSize = sizeof(SHELLEXECUTEINFO);
 boxmake.lpFile = _T("tesseract.exe");
 boxmake.lpParameters = box_make + " batch.nochop makebox";
 boxmake.nShow = SW_HIDE;
 boxmake.fMask = SEE_MASK_NOCLOSEPROCESS;
 boxmake.lpVerb = _T("open");
 boxmake.lpDirectory = fp;

 DWORD result = ::ShellExecuteEx(&boxmake);
 if (boxmake.hProcess != NULL)
 {
      ::WaitForSingleObject(boxmake.hProcess, INFINITE);
 }



+ Recent posts