locked
Execute a Metro Style App from C++ code RRS feed

  • Question

  • Hello guys,

    I'm developing an application using MFC for Windows 8 deskotp environment. In a part of it I need to call a Metro Style App from the code, and more especifically, open a link to a Metro App (for Example "Remote Desktop Connection.lnk" or "Store.lnk").

    I couldn't make it work with ShellExecute. What's the best way to do it?


    Thanks in advance,

    Joao Paulo Leite

    Wednesday, March 14, 2012 7:32 PM

Answers

  • Not sure you can do this. According to this thread, the only way to make a desktop app communicate with a metro app (on the same PC) is to use a WCF web service! :o

    You can also have a look at this thread. You can use ShellExecute to open a document. If the document type is associated to a Metro app, then ShellExecute will open a Metro app.

    Otherwise, if you are writing a desktop debugger which must run Metro apps, then you can use IApplicationActivationManager interface.

    Wednesday, March 14, 2012 9:28 PM

All replies

  • Not sure you can do this. According to this thread, the only way to make a desktop app communicate with a metro app (on the same PC) is to use a WCF web service! :o

    You can also have a look at this thread. You can use ShellExecute to open a document. If the document type is associated to a Metro app, then ShellExecute will open a Metro app.

    Otherwise, if you are writing a desktop debugger which must run Metro apps, then you can use IApplicationActivationManager interface.

    Wednesday, March 14, 2012 9:28 PM
  • Pierre Morel-Fourrier,

    I'll try to follow your tips. If it works I'll come back here soon.

    Thanks!

    Thursday, March 15, 2012 11:58 AM