C++ & the web. Oh gosh.

Oct 16, 2011 at 12:38am
So this has been bugging me for a while now. Can you put c++ apps onto the world wide web? I heard that web browsers cannot run .exes, so how does all of those flash games end up on the internet? Is there a language that is called flash? I thought it was always made by java/C#.

Any ideas?

-Me
Oct 16, 2011 at 12:48am
Hi me (I thought it was funny):

You can find source code generators that can run *.exe files in a web browser (or at least you could).

There is a language called actionscript (*.as I think) that Flash uses.
Oct 16, 2011 at 1:21am
Do you know what any of them would be called, or where I could start searching? I can't find anything about it. /:

So it would turn the code into actionscript?

Thanks! :)

-Me
Oct 17, 2011 at 7:14pm
Google has a project that enables native code (compiled exe) to run in a web browser

http://en.wikipedia.org/wiki/Google_Native_Client

This is all totally new and might even be a failure (become a virus vector maybe)

If you want to do interactive stuff for the web than Actionscript (flash) is probably a good way to go.

You can also create interactive web pages using javascript and html.

You cannot run C++ compiled code in a browser unless you want to the risk of being a guinea pig for Google_Native_Client

C++ is mainly used for native applications and server functionality


Oct 17, 2011 at 11:46pm
Just to add on,

Flash (made by Adobe) is just another platform for animations and games similar to Javascript, but much more user friendly and "safe". It's a completely different language from C++ as it runs on a virtual machine (ActionScript Virtual Machine, similar to Java's JVM), resulting in instant support for many types of files. The .swf (which is Flash's version of a .exe although they support that type, too) is actually automated by the web browser, requiring a plugin for the most part (even though 95% of web browsers out there support Flash) while the .as extension is just another Flash extension (I'm not too familiar with it, but I do remember seeing it from time to time). Frankly, I'm a little terrified that C++ support for websites exists.

If you want to switch over to AS, the transition shouldn't be hard at all. I came from an AS2 background and the syntax was extremely self-explainatory. The only problems are the cost and efficiency, but you should be able to get an 80% discount if you buy a student version.
Topic archived. No new replies allowed.