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.
I don’t have alot of webdevelopment experience but I do have a programming background C/C++.
Cheers
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.
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.
Normal web development uses Javascript instead of C++ to allow for programmability in web pages.