Beginner C/C++

Moderators: None (Apply to moderate this forum)
Number of threads: 5428
Number of posts: 16949

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Running a c++ game on web browser Posted by gameon786 on 25 Feb 2011 at 11:42 AM
Hi,
I have a game in c++ using GLUT.
Now i want that game to run on Web browser.
Do i need to write the whole game again or few modifications will do the job?

Report
Re: Running a c++ game on web browser Posted by CprogramC on 25 Feb 2011 at 2:29 PM
try to inject your c code into flash
Report
Re: Running a c++ game on web browser Posted by gameon786 on 25 Feb 2011 at 6:15 PM
actually its a chess game.so u mean i need to build the game again in flash to be able to play on web browser.
since i have no experience writing flash games,is it possible to write chess game in flash or do i need to code in some other language?
Report
Re: Running a c++ game on web browser Posted by CprogramC on 26 Feb 2011 at 6:27 AM
there must be a command in flash to use c commands directly or call compiled .exe or you can use command line functions in your c program to open browser. try
----------
gwbasic 10 CLS
qbasic A$=INKEY$
fortran printf("hello word");
labview |_|--->|_|-|-|_|----->o
c if(A=='q') {
cobol MOVE "hello world" TO A
c++ }
algol END
pascal .
Report
Re: Running a c++ game on web browser Posted by etki on 1 Mar 2011 at 11:34 AM
make it a cgi file

if you are on linux here's a library you can use

http://www.yolinux.com/TUTORIALS/LinuxTutorialC++CGI.html

if you are on windows here's a little tutorial:

http://rudeserver.com/cgiparser/tut_vc/




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.