C
C
cppcat2021-11-29 11:13:02
C++ / C#
cppcat, 2021-11-29 11:13:02

How to cross a local .exe application with a management interface in a web browser?

Good afternoon.
How can I do the next task?

I am writing a local application on the pluses, and it is necessary to implement control over it through the browser.
Something like the user's transition to the host and port localhost: 8080

Poke pliz with your nose, how is this done?

Upd.

Details.

The user on the page enters/changes the values, then the recalculation and issuance of new values ​​takes place.
You can't spread files around the system. It is necessary to build everything into a container, which will be an .exe.

For an analogue of the interaction between the user and the program, the version of the scanner "Acunetix 12" is taken

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
cppcat, 2021-11-29
@cppcat

res2001 - Thanks for the tip! :)
I also found the ""Wt" webtoolkit"" library
https://habr.com/ru/post/142585/
https://dask-blog.blogspot.com/2010/12/wt-c-web-to. ..
https://www.webtoolkit.eu/wt/features

A
Armenian Radio, 2021-11-29
@gbg

A detailed answer to this question, without providing you with the details of the problem being solved, will take up a thick book - only dozens of basic options, and in each there are dozens of clarifications and sub-options.
For example, if the application needs to convert some data (the user uploads a photo, the program replaces all faces with Ben Franklin, the photo is uploaded), then the first choice is a RabbitMQ-type queue (the backend of the site puts the image in the queue, the C binary processes the queue)

R
res2001, 2021-11-29
@res2001

The easiest way is to use the good old CGI interface, no one has canceled it, and there is support in web servers.
Perhaps there is something to replace CGI, fresher and faster.
Another option is to embed the web server in the application. I think you can find some ready-made web server in the form of a C / C ++ library and use this library (from what comes to mind - libonion). You can write some stripped-down version of a web server with minimal functionality yourself. To do this, you can use any library HTTP parser or, again, write it yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question