472,118 Members | 1,097 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,118 software developers and data experts.

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 1929
"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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.