"James" <j@j.net> schrieb im Newsbeitrag
news:ef**************@TK2MSFTNGP09.phx.gbl...
Are there any classes in c# for this or am I left to use the com
interface,
which I'm not sure how.
There are VBScript.Net and JScript.Net, however both will in the end be
compiled to native code, so technically they're not really scripting
languages. It's worth a look anyway:
http://msdn.microsoft.com/library/de...ng06112001.asp
AFAIK there is no support for older COM-based scripting hosts in the .NET
framwork.
And if I have this will it work on a machine that someone has disabled
scripting?
JScript.NET/VBScript.NET are really just .NET compilers like C# and J#. They
should work on any computer where the framework is installed.
COM-based scripting of course can be disabled for security reasons.
Finally, if I have MyClass objectA can I give it functions like MakeBigger
that would be available from the script?
Using one of the .NET scripting languages this comes more or less for free.
For COM-based hosts you will have to implement an IDispatch interface.
I'm new to this so thanks for any info!!
Thanks to the managed environment it's pretty easy to compile JScript.NET,
VB or even C# at runtime, and traditional scripting hosts don't have many
advantages any more. So I think you should have a look at the compiler
namespaces Microsoft.CSharp/VisualBasic/JScript.
Niki