473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 2019
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: FloridaJoe | last post by:
Thanking everyone in advance, I have been an AS400 RPG programmer for many years - moving into visual studio. I have both visual studio 6 and .net, but far more experience with 6. I would like...
4
by: Oscar | last post by:
I am quite new to the ASP scene. I want to display the results of a recordset into a third party grid control called VSFlexgrid. I've prepared one asp page which queries an Access database and...
18
by: Arthur | last post by:
Hi All, I would like to get the name of the user given their networkID, is this something Active Directory would be useful for?(For intranet users) If so, can you please point me to some sample...
0
by: fblake | last post by:
FOR IMMEDIATE RELEASE Active Up expands ever popular product line Active Web.Controls 2007 V1, Active Cells V2 and Active AutoSuggest V1.0 Belgium (February 2007): Active Up today released...
0
by: kal | last post by:
Hi there I am hunting for way to turn off/disable active scripting especially javascript in my webbrowser control. I don't see any property to turn off script. I found entry in registry...
2
by: Max Vit | last post by:
I have been toying with the idea of having an Active Directory authentication / authorisation functionality in MS Access; but there is not much useful info around. I have built these...
3
Banfa
by: Banfa | last post by:
The project I work on has a bespoke hardware platform which is designed to go into a variety of different situations. However to keep things simple we really want the software for the platform to...
7
ADezii
by: ADezii | last post by:
The next series of Tips will involve the Microsoft Scripting Runtime Library (Scrrun.dll). This Library is, in my humble opinion, one of the most useful and practical Libraries ever created. With the...
10
by: mukeshrasm | last post by:
Hi I have developed website using php and mysql and in that I have used JavaScript as well. I tried to run this website on different computer and set its browser's Active Scripting disabled. so...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.