469,578 Members | 1,869 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

Is active scripting available in dot net?

Are there any classes in c# for this or am I left to use the com interface,
which I'm not sure how.

And if I have this will it work on a machine that someone has disabled
scripting?

Finally, if I have MyClass objectA can I give it functions like MakeBigger
that would be available from the script?

I'm new to this so thanks for any info!!

Best Regards,
Nov 16 '05 #1
2 1846
"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
Nov 16 '05 #2
A little late here but thanks for the info. That link is great!!!
"Niki Estner" <ni*********@cube.net> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
"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

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by FloridaJoe | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.