Skip navigation
aim.dubey
Currently Being Moderated

Can we link or interface C/C++ library into HTML5 either static or dynamic

Jun 26, 2012 3:06 AM

Hi,


I'm new bee, Want to know Can we include C/C++ libraries into HTML5.


Means, want to do linking and interface of C/C++ libraries with HTML5.

 

Kindly suggest me the most appropriate way

 

Thanks

 
Replies
  • Currently Being Moderated
    Jun 26, 2012 7:24 AM   in reply to aim.dubey

    Hi

     

    Simple answer, no.

     

    C/C++ files are often compiled to run as executable files which cannot be included to run in a web browser. Depending on which server type you use you may be able to run them on the server itself, but this is also often blocked by your server provider, (look-up cgi files).

     

    If you are using the .net framework C++ files may be used, (with limitations) on servers supporting this, providing they conform to the framework specs. and do not try to breach the security rules, (like trying to access the users computer).

     

    PZ

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 27, 2012 6:20 AM   in reply to aim.dubey

    Hi

     

    On the user side it is only possible to do any of these things with the users permission, (they would have to download then install the files).

     

    Have you looked at the .net framework?

     

    Semi-custom UI's are possible on the user side with the .net framework, which will work across most desktop browsers, (not tablet, smartphone or Apple computers) that have the .net framework installed. But the use of any linked library's, (dll's) is not possible in a standard browser, and would bring up a security warning, (at best) or, (most probable) be blocked completely if one tried to do so. It could also result in your site being blocked by the browsers and search engines and your server being taken off-line completely.

     

    Other possibilities are, to do this using Java, (would require the user to have the Java run-time installed) use JavaScript, (native to all browsers) or look at the new additions to Flash CS6 which will allow you to use/create C programs, (again with some exceptions to allowed functions) that can be used with the Flash player.

     

    I do not know why you wish to insert C++ in a browser, but the thing to remember is that what you are trying to do is like inserting your own custom code into another program, without that program allowing you to do so.

     

    PZ

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2012 2:33 AM   in reply to aim.dubey

    Hi

     

    Just a last thought.

     

    Have you considered joining one of the open-source browser development communities? The reason I suggest this is that both webkit, (Safari/Chrome/Dw's live view) and Gecko, (Mozilla/Firefox) are developed in C/C++ by the open source community, and if what you wish to do is something that the user would benefit from, then the team leaders of both these would provide both help and support in incorporating your ideas into there browser(s).

     

    PZ

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points