Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    May 2010
    Posts
    27
    Thanks
    5
    Thanked 0 Times in 0 Posts

    using c++ library in jf file

    hello ..
    can I use som function from c++ library in my java script file ?


    thanks ..

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,731
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Nope.

    Quizmaster: How many centimeters are there is a metre?
    Contestant: Two and a half.

  • #3
    New Coder
    Join Date
    May 2010
    Posts
    27
    Thanks
    5
    Thanked 0 Times in 0 Posts
    what can I do when I want use something in c++ in my website ?

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,731
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Quote Originally Posted by wala View Post
    what can I do when I want use something in c++ in my website ?
    Try using something which is possible. You cannot somehow use c++ functions in a Javascript file. Rewrite your function in Javascript syntax.

  • #5
    New Coder
    Join Date
    May 2010
    Posts
    27
    Thanks
    5
    Thanked 0 Times in 0 Posts
    ok , thank you

  • #6
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Quote Originally Posted by Philip M View Post
    Try using something which is possible. You cannot somehow use c++ functions in a Javascript file.
    Well, that's not *strictly* true.

    *IF* you are willing to restrict yourself to MSIE browsers, you could create an ActiveX plugin, written in C++, and then script that plugin from JavaScript code.

    It's ugly as pig snot, but I have known some corporate situations where this has been the solution to invoking the company's proprietary software from browser-based code.

    It's cleary not something you would use for the inTERnet, but it's a possible solution in some inTRAnet situations, so long as the corporation is willing to insist that all employees use MSIE browsers.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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