Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 17th, 2005, 07:51 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing VBScript in C#

Hi

I have received a script in VBscript. I have to implement some of the functions of the script into my C# solution. How do I access these functions?
I placed :
<script language=vbscript src=3270.js></script>
in my aspx page.
But how do I access the functions in my CS file?

thx a lot


 
Old May 17th, 2005, 12:50 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Which question are you asking?

How do I access VBScript functions from CSharp?
  or
How do I access CSharp functions from VBScript?

VBScript is not .NET. Therefore in order to consume methods in the VBScript you'll need to either convert the VBScript to VB.NET or call the functions in the VBScript file thru the wscript interpreter thru an external process call. I'd highly recommend going with the conversion route.

If you want to consume C# from VBScript you could compile the C# classes to an assembly and register that for interopreability with COM. Then you could consume the .NET classes thru COM functionality in VBScript.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a VBA module's method from VBScript hamffjs Access VBA 3 November 28th, 2006 09:27 AM
VBScript junedali10 VB How-To 3 September 27th, 2006 03:06 PM
VBSCRIPT pantera710 Classic ASP Basics 3 September 11th, 2006 09:28 PM
VBScript error gramil Classic ASP Databases 1 May 29th, 2006 10:29 AM
Need Help in VBScript ragavendran31 Pro VB 6 0 April 19th, 2006 05:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.