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
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).
Really thanks for the reply.
My intention is to make a UI having following features:
1. Should be able to run/ work on all the OS platform like Windows, Mac & Linux.
2. Should be able to work with almost all the web browser like IE, Chrome, Firefox, etc.
3. Should be able to link or interface C/C++ library.
If possible can embed any other tool to link these C & C++ lib.
Actually here, no server only independent application which has to link C & C++ lib
and run on all 3 OS and almost possible web browser.
For you all support.
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.
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.
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).
Really, thanks for the concern.
Now I'm very sure there is till now no any solution to directly link or interface C/C++ lib. into HTML5
As webKit only support to Opera and Chrome.
Might be we should wait to add the IE and Mozilla support.
Europe, Middle East and Africa