DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2005

    C++ programs used in website

    As my question will demonstrate, I am a C++ neophyte. But Im working steadily at it and making progress.

    My question is this: Can the programs Im writing in C++ be used on a website? Or am I going to have to rewrite them in some sort of HTML?

    For example, I've written a small program that permits a user to button-click and see various arrangements of notes on the guitar neck. Will that program "work" on a website?

    I suspect the answer will be yes, you can use the program on your website.

    If that is the case, could you give me some general guidelines about doing just that? Very general. I'm not asking for a step-by-step tutorial.

    Surely it is not as simple as simply uploading the program to the webserver . . . or is it?

    Thanks in advance for your patience and your advice, both past and present.

  2. #2
    Join Date
    Aug 2005
    As far as I know no you will be able to use your C++ program on a website..
    You will need to re write it in javascript or another web based language..

  3. #3
    Join Date
    Jan 2005
    You will not be able to use any C++ program directly from your website, you will have to resort to things like COM to wrap your program and then do ASP serverside calls to your component. You can do Clientside calls as well I believe, if you force the user to download your component, but that is, apart from being dangerous for your user (security), also slow and highly platform dependable.
    Button press event handlers etc are comparatively easy to implement in HTML/JavaScript so I wouldn't bother putting THEM in a component. Just put the more involved stuff there...
    First of all if I were you I would make myself acquainted with COM and ATL (ActiveX Template Library). There's a lot of stuff on MSDN and quite a chunk to read. If you are working on Unix or Apple I am afraid I can't recommend anything. Probably Java-Applets/Beans is the answer?!



  4. #4
    Join Date
    Nov 2003
    Web sites require HTML or some other scripting language, but usually you also have an engine written in C/C++ etc. The simlest form of using C++ in a Web site is cgi. More advanced techqniues use COM, CORBA and the likes. The bottom line is that you need to know both C++ and HTML.
    Danny Kalev

Similar Threads

  1. Uploading Website - Html and Vbscript
    By Prasad in forum Web
    Replies: 1
    Last Post: 11-28-2002, 03:10 AM
  2. Uploading Website - Html and Vbscript
    By Prasad in forum Web
    Replies: 0
    Last Post: 10-16-2002, 10:16 AM
  3. Uploading Website - Html and Vbscript
    By Prasad in forum Web
    Replies: 0
    Last Post: 10-16-2002, 10:11 AM
  4. how can I best start a profitable website
    By john moyers M.D., PhD in forum Web
    Replies: 0
    Last Post: 06-04-2002, 09:12 AM
  5. Replies: 3
    Last Post: 03-07-2001, 10:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.