运行C / C ++ code在一个网页浏览器? [英] Running C/C++ code in a webbrowser?

查看:318
本文介绍了运行C / C ++ code在一个网页浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的web开发,我在寻找有关如何在浏览器中运行C ++ code一些教程或资源。我很快就要做哪些使用提供的DLL +我自己的程序在浏览器中实现了完善的服务(如Flash我猜)学位项目,所以我找上哪里找一些初学者。

I'm new to webdevelopment and I am looking for some tutorials or resources about how to run C++ code in a browser. I soon going to do a degree project which implements a sound service in a browser (like flash I guess) using a provided DLL + my own program, so I'm looking for some starters on where to look.

我没有web开发的很多经验,但我有一个编程背景的C / C ++。

I don't have alot of webdevelopment experience but I do have a programming background C/C++.

干杯

推荐答案

在几乎所有一般情况下你不会希望在你的网页浏览器C ++ code运行。运行C ++ code是在大多数情况下,类似于给您的计算机的完全控制运行code。它基本上可以做任何事情,从安装病毒删除你的硬盘驱动器上的所有内容。这是你不想让任何随机的网站您访问做一些事情。

In almost all normal cases you would not want to have C++ code running in your web browser. Running C++ code is in most cases akin to giving full control of your computer to the running code. It can basically do anything, from installing viruses to deleting everything on your hard drive. This is something you would not want to allow any random website you visit to do.

有了这样说,有几个选择做,这是所谓的安全的方式。这仅适用于Microsoft Internet Explorer的一个方法是使用ActiveX控件。 这里有一个页面在那里你可以开始学习一下吧。结果
另一种选择,只在瞬间工作在谷歌浏览器使用谷歌的本地客户端(氯化钠)。 这里的在那里你可以开始了解此选项。结果
如果你想这样做的Firefox,则需要用户安装一个插件。 这里的这个选项一个很好的起点页。

With that being said, there are a few options to do this is a so called "secured" way. One way that only works on Microsoft Internet Explorer is using ActiveX controls. Here's a page where you can start to learn about it.
Another option, that only works in google chrome at the moment is using Google's native client (NaCl). Here's where you can start to learn about this option.
If you want to do it on firefox, you'll need the user to install an addin. Here's a good starting page for this option.

普通的Web开发使用JavaScript,而不是C ++,以便在网页编程能力。

Normal web development uses Javascript instead of C++ to allow for programmability in web pages.

这篇关于运行C / C ++ code在一个网页浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆