简体   繁体   English

Windows 表单应用程序在 Windows 托管服务上运行

[英]Windows Form application run on Windows hosting service

I've created a Windows Forms application that basically contains an HttpListener which launch a Form for each request.我创建了一个 Windows Forms 应用程序,它基本上包含一个 HttpListener,它为每个请求启动一个表单。 I have to show forms server side because I have to take a snapshot of what it's shown on the screen to send it to the client.我必须显示 forms 服务器端,因为我必须对屏幕上显示的内容进行快照才能将其发送到客户端。 I've also made a asp.net web application in which I show those images sent from the HttpListener who act as a server.我还制作了一个 asp.net web 应用程序,其中我展示了从充当服务器的 HttpListener 发送的那些图像。 Everything works fine on my machine but now that I must deploy it on my company's website I dont know how to do it, anyone has a solution?在我的机器上一切正常,但现在我必须将它部署在我公司的网站上,我不知道该怎么做,有人有解决方案吗? I haven't remote control on server, I can just upload files inside using FTP.我没有远程控制服务器,我可以使用 FTP 上传文件。 What if I create a page inside my web application to launch the exe file?如果我在我的 web 应用程序中创建一个页面来启动 exe 文件怎么办? Any suggestion is really welcome!任何建议都非常受欢迎!

I'm definitely no OpenGL expert but I believe that its possible to use OpenGL to render a scene without displaying it to a screen.我绝对不是 OpenGL 专家,但我相信可以使用 OpenGL 渲染场景而不将其显示到屏幕上。 Some preliminary research indicates that "pbuffers" allow you to render an image to a texture (which would presumably then allow for programatic access).一些初步研究表明,“pbuffers”允许您将图像渲染到纹理(这可能会允许编程访问)。

Can i save an OpenGL scene as an image without showing it? 我可以将 OpenGL 场景保存为图像而不显示吗?

Note that using OpenGL probably depends on the server machine having a suitable graphics card.请注意,使用 OpenGL 可能取决于具有合适显卡的服务器机器。 As most servers don't come with very capable graphics card (some servers don't come with any graphics card) this is definitely something that you should check beforehand.由于大多数服务器没有配备非常强大的显卡(有些服务器没有配备任何显卡),这绝对是您应该事先检查的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM