在 html
我遇到了一些旧代码
目前不起作用并且曾经在旧版本的 IE 中工作。我从来没有遇到过像这样在网页中嵌入 dll 的情况。它似乎是一个用 C# 编写的 Windows .NET 应用程序。这是在我们的内网上使用的。
ClassName 的类型为 System.Windows.Forms.UserControl ,
我似乎也可以直接通过 javascript 调用 UserControl 的 C# 方法。
有没有人有任何有关其工作原理以及是否可以将其破解到 Firefox 的文档。将 Windows 控件重写为 Web 应用程序将是一场噩梦。
[编辑]
它似乎是某种 activeX / COM 的东西,在 IE 中你可以直接将 Windows 应用程序移植到 html 文件中。如果您正确设置了各种设置,它应该能够在本地运行。如果有人知道需要设置什么才能使其发挥作用,那就太好了。
微软,你永远不应该允许人们将Window控件直接移植到IE中,这是一个可怕的概念。
I've come across some old code
<object id="foo" classid="/location/bar.dll#ProjectName.ClassName" viewastext></object>
It doesn't currently work and used to work in older versions of IE. I've never come across embedding a dll in a web page like this. It appears to be a windows .NET application written in C#. This is used on our intranet.
And ClassName is of type System.Windows.Forms.UserControl
It also seems I can call the C# methods of the UserControl directly through javascript.
Does anyone have any documentation on how this works and whether its possible to hack it into firefox. Rewriting the windows control as a web application would be a nightmare.
[Edit]
It appears to be some kind of activeX / COM thing where in IE you could just port a windows application directly into a html file. It's supposed to be able to run locally if you set up various correctly. If anyone has an idea of what needs to be set up for this to work, that would be nice.
Microsoft, you should never have allowed people to port Window controls into IE directly, It's a hideous concept.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果不确切知道它的用途,很难说...
http://msdn.microsoft.com/en-us/library/a7as3z1d(v=vs.90).aspx
可能会给您一些信息...
Its hard to say without knowing exactly what it was for...
http://msdn.microsoft.com/en-us/library/a7as3z1d(v=vs.90).aspx
May give you some info...