DIGIT-ARC read-only archive · snapshot: July 23, 2026

c/c++ program in a web page??

15 posts · originally from https://geek.digit.in/community/threads/c-c-program-in-a-web-page.65042/

blademast3r
blademast3r Original post #1
Aug 8, 2007 at 8:11 PM
hi everybody is it possible to run a c/c++ program in html? in a web page basically...if yes how??

-Ram
Pathik
Pathik #3
Aug 8, 2007 at 9:12 PM
Nope.. However u can use java applets..
S
Aug 8, 2007 at 11:20 PM
No that is not possible. Can you consider COM instead?
blademast3r
Aug 8, 2007 at 11:56 PM
hmm k...well i hav another question....is it possible to run any pogram on a server which can take a value from a web page and perform actions on it??
for eg : lets take google page...we input the keywords, lets assume they are fed to a program on the server and they the program searches the database...
is it possible to this?? how??
M
Aug 9, 2007 at 3:34 AM
I think what you're looking for is server side scripting language
piyush gupta
Aug 9, 2007 at 10:43 AM
Thatzz another thing mehul


in HTML u can't run or execute anything

HTML only understand tags and implement perdefined tags

for ur tags u need DHTML or JAvascript or VBscript or some other scripting language

or u can use a COM object or Applets for running C/C++ programs
RCuber
RCuber #8
Aug 9, 2007 at 1:03 PM
C/C++ can be used for only server side scripting . as Piyush said... for making your HTML Page as a program you have to use client side scripting (DHTML) .. Use Javascript, its very similar to C/C++ in syntax but not as powerfull, you can also use VB scripting but AFAIK it works only with IE.

Here is a good starting place W3Schools
blademast3r
Aug 9, 2007 at 4:01 PM
charangk said:
C/C++ can be used for only server side scripting . as Piyush said... for making your HTML Page as a program you have to use client side scripting (DHTML) .. Use Javascript, its very similar to C/C++ in syntax but not as powerfull, you can also use VB scripting but AFAIK it works only with IE.

Here is a good starting place W3Schools

yes i want to use it for server side scriptin only...also i don wanna use java script ...jus need a good tutorial on how to use c for the purpose..
RCuber
RCuber #10
Aug 9, 2007 at 4:53 PM
^^ What kind of wepages doyou want to create?

Check this Link
casanova
casanova #11
Aug 9, 2007 at 5:18 PM
U can do C like scripting in PHP
S
sandeepk #12
Aug 9, 2007 at 10:23 PM
What is your exact need? It will be better if you know what you want to achieve and then it will also help you get suggestions. You can use CGI for server side scripting as suggested by charangk earlier. Else you can use COM for that also as I suggest in my previous post.
Vivek788
Vivek788 #13
Aug 10, 2007 at 6:25 AM
well...php is quite like C...
debiprasad_sahoo
Sep 8, 2007 at 3:43 PM
I m not sure that can u run c/c++ programs. But I will suggest it to convert ur c/c++ programs to php. You can achieve to fulfill your need. If you want to use multiple inheritance then you can not do it using php.