locked
system() cannot be called inside our metro app ?

    Question

  • Hello,

    I was not able to call the "system()" from my metro app CPP code. I guess, we are not allowed to fork and exec a new process from our metro app ? Please, confirm. Thanks!

    Regards,

    SN

    Wednesday, February 22, 2012 2:06 AM

Answers

  • Yes, you are rightm we cannot exec a new process in metro app.

    You could try to use Launcher::LauncherDefaultProgram to launch a program which is associated with the specified file or protocol.


    Bob Bao [MSFT]
    MSDN Community Support | Feedback to us


    • Edited by Bob_Bao Wednesday, February 22, 2012 5:08 AM
    • Proposed as answer by Jesse Jiang Monday, March 05, 2012 8:28 AM
    • Marked as answer by Bob_Bao Tuesday, March 06, 2012 5:09 PM
    Wednesday, February 22, 2012 4:17 AM

All replies

  • Yes, you are rightm we cannot exec a new process in metro app.

    You could try to use Launcher::LauncherDefaultProgram to launch a program which is associated with the specified file or protocol.


    Bob Bao [MSFT]
    MSDN Community Support | Feedback to us


    • Edited by Bob_Bao Wednesday, February 22, 2012 5:08 AM
    • Proposed as answer by Jesse Jiang Monday, March 05, 2012 8:28 AM
    • Marked as answer by Bob_Bao Tuesday, March 06, 2012 5:09 PM
    Wednesday, February 22, 2012 4:17 AM
  • Thanks Bob !

    Regards,

    SN

    Wednesday, February 22, 2012 6:24 AM