C#编译的exe可以集成到网站中吗?
我是编程初学者。 我刚刚制作了一个名为“猜谜游戏”的程序。 而且看起来效果很好。 我可以将其集成到网站中吗? 我使用的 CMS 是 Mambo。
=== 附加信息
感谢您的所有建议。
我仍然没有任何关于 Silverlight、WPF 和 Java Script 的背景知识,但我认为听起来不错。 我使用的是 Windows,并使用 Microsoft Visual Studio 2008 编写了“猜谜游戏”,它使用的是 Windows 应用程序表单。
是的,我想,目前我就顺其自然并开始学习 Silverlight 或 Java Script,以便我可以将其集成到我的网站上:-) 感谢您提供的所有意见:-)
干杯
I'm a beginner in programming. I've just made a program called "Guessing Game". And it seems to work fine. Can I integrate it into a website? The CMS that I'm using is Mambo.
===
additional info's
Thanks for all your suggestions.
I still don't have any background about Silverlight, WPF and Java Script which I think sounds good. I'm using Windows and I programmed my "Guessing Game" from Microsoft Visual Studio 2008 and it's using Window application forms.
Yes I guess, for the moment I let it be and start to learn Silverlight or Java Script so that I can integrate it on my website:-)
Thanks for all your input guys:-)
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
是的 - 一般来说,当你谈论软件时,一切皆有可能。 问题是,这会有多困难?
要理解这一点,您必须向我们提供有关“猜谜游戏”的更多详细信息,包括它是如何设计的、它的接口是什么、它的可扩展性如何,以及您准备如何更改或扩展它。
例如,如果它是一个Windows Forms GUI应用程序,那么它将很难集成到Web应用程序中。 如果是控制台应用程序,那么会容易一些。 如果您可以将其修改为作为 Windows 服务运行,那就容易一些了。 如果您可以修改它以接受来自网络的输入(而不是仅从键盘+鼠标获取输入),那就更容易了。
Yes - in general, when you're talking about software, anything is possible. The question is, how difficult will it be?
To understand that, you have to give us more details about "Guessing Game" including how it is designed, what it's interfaces are, how readily extensible it is, and how prepared you are to change or extend it.
For example, if it is a Windows Forms GUI app, then it will be diifficult to integrate into a web app. If it is a console app, then it will be a little easier. If you can modify it to run as a Windows Service, then a little easier. If you can modify it to accept input from the network (as opposed to getting input solely from the keyboard + mouse), still easier.
您也许能够使用反射将程序集加载到 Web 应用程序中,但很可能答案是否定的。
最好的解决方案可能是用 JavaScript 重写游戏。
You may be able to use reflection to load your assembly into the web application, but most likely, the answer is no.
Your best solution is probably to re-write the game in javascript.
你的问题的简短答案是现在。 我假设由于您正在运行 Mambo,因此您的 Web 环境是一个 LAMP 堆栈。 然而,从声音上看,您的“猜谜游戏”很可能是一个 Windows 应用程序。 对于编程初学者来说,您无法采用任何集成路径来让您的游戏在您的网站上运行。
但是,您可以采取以下途径,这将需要大量时间来学习。 我并不是说你不应该花时间学习,无论如何你应该花时间学习! 我只是想说明这样一个事实:这不是几个小时内就能完成的事情。
The short answer to your question is now. I'm presuming that since you're running Mambo you're web environment is a LAMP stack. However, you're "Guessing Game" is most likely a Windows application from the sound of it. For a beginner in programming, there is no integration path you're going to be able to take that will allow you to have your game running on your website.
However, here are avenues you can take, which will require a significant amount of time to learn. I'm not saying you shouldn't take time to learn, by all means you should! I'm simply trying to illustrate the fact that this is not something that is going to be doable in a couple of hours.
独立的可执行文件不能直接集成到网站中。 不过,您有几个选择:
A standalone executable cannot be directly integrated into a website. You have a few choices though:
您仍然需要回答几个问题。
让常规 Windows 应用程序在 Web 环境中运行通常并不简单,因为在 Web 上您实际上是在浏览器中运行,而不是在 Windows 上运行。
There are several questions that you still need to answer.
It is typically not trivial to make a regular windows application run in a web environment since on on the web you are really running in the browser, not on Windows.