0

How can one write a C++ dll function (for windows CE) to call an exe application

e.g the exe path is \DOC\EXE\WINCE_EXE

Thanks.

saroll
  • 217
  • 2
  • 4
  • 9

1 Answers1

3

did you try CreateProcess, same as on desktop windows?

Ben Voigt
  • 277,958
  • 43
  • 419
  • 720
  • yes but it doesn't seem working LPCWSTR pathA=L"\\CF\\PosClient\\sim\\CardReader_WinCE.exe"; if (CreateProcess(pathB,NULL , NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo)) { ::WaitForSingleObject(processInfo.hProcess, INFINITE); CloseHandle(processInfo.hProcess); CloseHandle(processInfo.hThread); } – saroll Nov 18 '11 at 16:59
  • using getlast error it says encontered unexcpted error and must be closed. – saroll Nov 18 '11 at 18:36