Solved

.NET script host

Posted on 2002-06-20
8
687 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

25 Experts available now in Live!

Get 1:1 Help Now