Skip to main content
gamedev.net
🔒 Locked

C++ program on the Web

Started by bballmitch 4 replies 950+ views
Original Post
bballmitch
bballmitch
Hello. I have programmed in C++ and Java for a while now and I love the fact that you can make an Applet in Java and that way other people can access your programs. Is there a way that a C++ program can be put on the internet? I know I could just send people the files, but I would much rather have them play my game on the internet. Is that possible?
Mitchen Games
hayder
hayder
the short answer is No
Replicon
Replicon
The reason that's so easy to do with Java is that Java doesn't compile into machine language (which is platform-dependant), but into bytecode (platform-independant), which is interpreted by your web browser's java plugin (for example).
VeryBoringNickName
VeryBoringNickName
Well, you could use winforms.

type "hosted winforms" into a search engine, that will give you enough stuff to read.

You can write winforms in (managed) C++.

But, there are some drawbacks:

It would only work in windows.
And even in windows, only with IE.
And the users need to have the .net framework installed.

OK, there is Mono, but I don't know how it behaves with hosted forms etc.
johnhattan
johnhattan
There's also the Popcap framework, but that still locks you into Windows and IE.
(my byline from the Gamedev Collection series, which I co-edited) John Hattan has been working steadily in the casual game-space since the TRS-80 days and professionally since 1990. After seeing his small-format games turned down for what turned out to be Tandy's last PC release, he took them independent, eventually releasing them as several discount game-packs through a couple of publishers. The packs are actually
Mattman
Mattman
You can GET and POST to C++ DLL's programmed to do so.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.