Using the browser for desktop UI

前端 未结 6 886
刺人心
刺人心 2020-12-30 08:07

How can I use the browser as a UI for a desktop app? The ways I have come up with so far are...

  1. Use all HTML/Javascript. Problem: Can\'t access filesystem or j
6条回答
  •  时光取名叫无心
    2020-12-30 08:14

    You did not mention the OS you will need to target. But you might be able to create a program statared web server, then launced the default browser. Wait until the browser is terminated by the user and then shut down the web server.

    So for example on windows you can use CreateProcess() to spawn the process then MsgWaitForMultipleObjects() to wait until it is finished executing.

提交回复
热议问题