How to Run a .C program in a .html file


#1

So I got a few files.
Containing the following, -Cube.exe
-Cube.ini
MIKER.C

And what I want is a html browser and then the Cube.exe file running and working in my html.
So that every or most of the features work.

Any one that can help me?


#2

detailed explanation right here,

http://www.digitalmars.com/ctg/html.html


#3

If you're looking to run an exe file then you're probably out of luck. It's not C any more, it's a windows binary.

If you have the source code and it's doing only things a browser is capable of, then you can look into emscripten (they used to do that for python and ruby interpreters (which are C programs) here on cc) https://github.com/kripken/emscripten which compiles into javascript, or chrome's native client https://developer.chrome.com/native-client


#4

I’m trying to do something similar. I’m creating a character generator for Dungeons & Dragons and want to put it in a google site. It’s a C file. Any ideas?