Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# and ScriptHosting

C# and ScriptHosting

Scheduled Pinned Locked Moved C#
csharpc++javascriptperformancequestion
3 Posts 2 Posters 16 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Datacrime
    wrote on last edited by
    #1

    Someone said in this forum that in ASP+ you can use C#. That means that C# has a ScriptEngine Implementation? To be more specific with my guestion, If i have a program (in VC++) where i use ActiveScripting, and want to add suport for C# i should: a) Just Create the C# ScriptEngine in the same manner i did with JS and VBS and pass it my ScriptSite. b) Create the C# ScriptEngine and implement a new interface in my application (like: IScriptSite3 | IScriptSiteEx). c) Forget everything i knew about ActiveScripting and start over a new project. - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

    E 1 Reply Last reply
    0
    • D Datacrime

      Someone said in this forum that in ASP+ you can use C#. That means that C# has a ScriptEngine Implementation? To be more specific with my guestion, If i have a program (in VC++) where i use ActiveScripting, and want to add suport for C# i should: a) Just Create the C# ScriptEngine in the same manner i did with JS and VBS and pass it my ScriptSite. b) Create the C# ScriptEngine and implement a new interface in my application (like: IScriptSite3 | IScriptSiteEx). c) Forget everything i knew about ActiveScripting and start over a new project. - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

      E Offline
      E Offline
      Eric Gunnerson msft
      wrote on last edited by
      #2

      ASP.NET (same as ASP+) doesn't use a scripting model the way ASP does; it uses a compiled code model. You get the ability to use C#, VB (not VBS), and JScript.NET (also compiled) from within ASP.NET, and all of them are compiled to IL and then JITted at runtime. There is, however, no scripting version of C#. If you explained a bit more about what you were trying to do with your scripting stuff, I might be able to point you in the right direction.

      D 1 Reply Last reply
      0
      • E Eric Gunnerson msft

        ASP.NET (same as ASP+) doesn't use a scripting model the way ASP does; it uses a compiled code model. You get the ability to use C#, VB (not VBS), and JScript.NET (also compiled) from within ASP.NET, and all of them are compiled to IL and then JITted at runtime. There is, however, no scripting version of C#. If you explained a bit more about what you were trying to do with your scripting stuff, I might be able to point you in the right direction.

        D Offline
        D Offline
        Datacrime
        wrote on last edited by
        #3

        Thanx for the information. I allready found some information about calling C# from C++. I guess this is the new way to do scripting. - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups