Results 1 to 8 of 8

Thread: Using C++ Online

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    Someplace 'ore the rainbow
    Posts
    392

    Using C++ Online

    I have a server that can do it, but my question is how do I implement C++ into a web page?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You can't implement C++ into a web page. You can use an app written in C++ as a CGI app, but that's something completly different and not a very good idea unless you really need that speed.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    i thought that in tests CGI apps were slower than PHP and ASP? but i could be wrong.

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    ASP.NET has suppored for compiled languages (of the .NET family, VB.NET, C#, C++.NET). If you knew any of these languages you can use the source file in your aspx.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    If it's a large CGI app the speed advantage of compiled C++ over interpreted scripting languages such as PHP and traditional ASP makes up for the speed problems of the CGI interface (or whatever causes the delay).
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    If you are for speed, you can write ISAPI in C++. That is exactly what my site is: http://www.greatwesternpages.com.au/octopus

    http://www.bnt.com/inetsdk/isapi2.htm
    VS.NET 2003

    Need to email me?

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by john tindell
    i thought that in tests CGI apps were slower than PHP and ASP? but i could be wrong.
    In CGI mode, PHP will be slower. When used as mod_php with Apache, it will blast through it. Similarly, ASP is parsed by IIS.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  8. #8
    New Member
    Join Date
    Jan 2003
    Posts
    5

    C++ as web service

    Another option is to create a web service in C++ in .Net and encapsulate your functionality there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width