Solved

.NET script host

Posted on 2002-06-20
8
690 Views
Last Modified: 2013-11-25
is there a scripting host compatible with .NET?
The ActiveX object cannot AddObject a .net control.
And in VS.net there is no component for scripting.
why????
0
Comment
Question by:Azmodan
8 Comments
 
LVL 20

Expert Comment

by:Silvers5
ID: 7097040
ASP.NEt is now a compiled platform.. but you can past pure asp3.0 in your asp.net pages.. it's reverse compatible but not recommended and might not be supported in next releases.. so start developing under .NET using the "new" languages..
0
 

Author Comment

by:Azmodan
ID: 7097905
no no no
not in ASP or web development is that I need the scripting.
I used the scripting host in VB6 to let the users command some of the control on the interface. It had nothing to do with web development. There was an ocx (script host control - msscript.ocx) that allowed vb controls to be added to it with AddObject and that, by script, I could modify properties of the object/control.

Is there a scripting host that allows integration with .NET?
0
 
LVL 2

Expert Comment

by:tdubroff
ID: 7099281
You should be able to tlbimport the msscript.ocx.  This will give you a COM wrapper.  To run code you can do:

dim iscr as MSScriptControl.ScriptControl
iscr = new MSScriptControl.ScriptControlClass
iscr.Language = "vbscript"
iscr.ExecuteStatement("msgbox ""hello from vbscript""")

From a WinForm's perspective you should:

1) Right click on 'References' in the Solution Explorer
2) Click on Add Reference
3) Click on the COM tab
4) Double click on the 'Microsoft Script Control 1.0'
   This will import it into your project.
5) Click OK

Now you should be able to add .NET objects into the script engine by adding public functions.  Similar to the following:

iscr = new MSScriptControl.ScriptControlClass();
iscr.Language = "jscript";
iscr.AddObject( "obj", new TestThing( this ), true);
iscr.AddObject( "test", this, true );

Hope that helps.
0
 

Author Comment

by:Azmodan
ID: 7131248
For .NET control it doesn't work
I need a scripting environment than can take .NET controls.

I found out about VSA. This is what i need, but it's very complicated to make an engine.
Has someone done or found, a script control made with vsa?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:Azmodan
ID: 7131252
For a .NET control it doesn't work
I need a scripting environment than can take .NET controls.

I found out about VSA. This is what i need, but it's very complicated to make an engine.
Has someone done or found, a script control made with vsa?
0
 

Author Comment

by:Azmodan
ID: 7131253
For a .NET control it doesn't work
I need a scripting environment than can take .NET controls.

I found out about VSA. This is what i need, but it's very complicated to make an engine.
Has someone done or found, a script control made with vsa?
0
 
LVL 8

Expert Comment

by:zlatev
ID: 7965110
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- PAQ points not removed


Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Zlatin Zlatev
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 8018755
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now