C# and ScriptHosting
-
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
-
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
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.
-
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.