473,569 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2030
"James" <j@j.net> schrieb im Newsbeitrag
news:ef******** ******@TK2MSFTN GP09.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.CShar p/VisualBasic/JScript.

Niki
Nov 16 '05 #2
A little late here but thanks for the info. That link is great!!!
"Niki Estner" <ni*********@cu be.net> wrote in message
news:eq******** ******@TK2MSFTN GP12.phx.gbl...
"James" <j@j.net> schrieb im Newsbeitrag
news:ef******** ******@TK2MSFTN GP09.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.CShar p/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
3992
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 to create a program that could access our active directory and display an up to date telephone list for the organization on client computers. Does...
4
1902
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 holds the object in which the results should be writte. I've tried two options : 1. The grid active-X component was instantated within the html part...
18
23766
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 code/examples? Thanks in advance, Arthur
0
1220
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 the latest version of their .NET web control suite, Active Web.Controls 2007 V1, their excel compatible component Active Cells V2 and a new text...
0
2582
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 under HKU/software/microsoft/... which gets modified when we manually change the setting for active scripting in IE from dword 3 to 0. But that solution...
2
9261
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 functionalities for some applications (JAVA, PHP). The parameters used there are the LDAP parameters for AD: *searchFilter: (objectClass=user) *searchBase:...
3
2057
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 remain the same in all cases (as good practice suggests). One of our thoughts is that to provide the final customisation required for each application...
7
8824
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 Scripting Runtime Library, you can retrieve information related to Drives, Folders, Files, and Text Files and set/retrieve certain Attributes of...
10
3723
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 javascript is not working on that system. Now what i wanted that if user's javascript/active scripting is disbaled then it should prompt user to enable...
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8119
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7668
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...

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.