Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VBS function into ActiveX ??

Reply
 
Old 05-23-2008   #1 (permalink)
p byers


 
 

VBS function into ActiveX ??

Hi Folks
Is it technically possible to take one or more VBS functions
and put them into an ActiveX DLL.


If so, where can I find the documentation to show me how to
do it ??


Classic that is, NOT dotNET

Thanks in anticipation
Pete (Northolt UK)



My System SpecsSystem Spec
Old 05-23-2008   #2 (permalink)
mayayana


 
 

Re: VBS function into ActiveX ??

Yes, you can sort of do it. But why would
you want to? Maybe it'd help if you explained
what you want to accomplish.

You can probably put actual script into a DLL
using the script control, but that wouldn't make
much sense. The point of using a DLL would be
to provide script with something that it can't
normally do, by writing VB code and giving script
a way to run it via public methods.
Quote:

> Hi Folks
> Is it technically possible to take one or more VBS functions
> and put them into an ActiveX DLL.
>
>
> If so, where can I find the documentation to show me how to
> do it ??
>
>
> Classic that is, NOT dotNET
>
> Thanks in anticipation
> Pete (Northolt UK)
>
>

My System SpecsSystem Spec
Old 05-24-2008   #3 (permalink)
p byers


 
 

Re: VBS function into ActiveX ??

Sadly both of these links relate to dotNET

At the moment, I do NOT want to move to dotNET

Thanks for the reply though

McKirahan wrote:
Quote:

> "p byers" <pb@xxxxxx-ltd.co.uk> wrote in message
> news:48371D51.5BCD480E@xxxxxx-ltd.co.uk...
Quote:

> > Hi Folks
> > Is it technically possible to take one or more VBS functions
> > and put them into an ActiveX DLL.
> >
> >
> > If so, where can I find the documentation to show me how to
> > do it ??
> >
> >
> > Classic that is, NOT dotNET
>
> "Windows® Script Components provide you with an easy way to
> create powerful, reusable COM components in script. You create
> script components using any scripting language that supports the
> Microsoft® ActiveX® Scripting interfaces. Script languages that
> support these interfaces include JScript, Microsoft® Visual Basic®
> Scripting Edition (VBScript), PERLScript, PScript, and Python."
>
> Introducing Windows Script Components
> http://msdn.microsoft.com/en-us/libr...h8(VS.85).aspx
>
> Building Windows Script Components
> http://www.4guysfromrolla.com/webtech/050400-1.shtml
My System SpecsSystem Spec
Old 05-24-2008   #4 (permalink)
p byers


 
 

Re: VBS function into ActiveX ??

Correction - I did it using "Windows Script Component Wizard" by
following the 4GuysFromRolla tutorial

Brilliant !!!

Thanks very much for the advice

Sorry to have doubted you !!



p byers wrote:
Quote:

> Sadly both of these links relate to dotNET
>
> At the moment, I do NOT want to move to dotNET
>
> Thanks for the reply though
>
> McKirahan wrote:
>
Quote:

> > "p byers" <pb@xxxxxx-ltd.co.uk> wrote in message
> > news:48371D51.5BCD480E@xxxxxx-ltd.co.uk...
Quote:

> > > Hi Folks
> > > Is it technically possible to take one or more VBS functions
> > > and put them into an ActiveX DLL.
> > >
> > >
> > > If so, where can I find the documentation to show me how to
> > > do it ??
> > >
> > >
> > > Classic that is, NOT dotNET
> >
> > "Windows® Script Components provide you with an easy way to
> > create powerful, reusable COM components in script. You create
> > script components using any scripting language that supports the
> > Microsoft® ActiveX® Scripting interfaces. Script languages that
> > support these interfaces include JScript, Microsoft® Visual Basic®
> > Scripting Edition (VBScript), PERLScript, PScript, and Python."
> >
> > Introducing Windows Script Components
> > http://msdn.microsoft.com/en-us/libr...h8(VS.85).aspx
> >
> > Building Windows Script Components
> > http://www.4guysfromrolla.com/webtech/050400-1.shtml
My System SpecsSystem Spec
Old 05-24-2008   #5 (permalink)
Paul Randall


 
 

Re: VBS function into ActiveX ??

Comment inline

"p byers" <pb@xxxxxx-ltd.co.uk> wrote in message
news:4837E38B.CD80F860@xxxxxx-ltd.co.uk...
Quote:

> Sadly both of these links relate to dotNET
>
> At the moment, I do NOT want to move to dotNET
>
> Thanks for the reply though
That box on so many of the MSDN web pages is misleading. It says:
This page is specific to .NET Framework 3.0
Other versions are also available for the following:
Microsoft Visual Studio 2005/.NET Framework 2.0

It is not the information on the page that is specific to .NET.
Perhaps there is something about the HTML that is specific to .NET.
If you take the link to the 'Other versions', you get the same
information, and a similar box leading back to this .NET Framework 3.0
page. I think the box is just a disinformation scheme.

-Paul Randall
Quote:

> McKirahan wrote:
>
Quote:

>> "p byers" <pb@xxxxxx-ltd.co.uk> wrote in message
>> news:48371D51.5BCD480E@xxxxxx-ltd.co.uk...
Quote:

>> > Hi Folks
>> > Is it technically possible to take one or more VBS functions
>> > and put them into an ActiveX DLL.
>> >
>> >
>> > If so, where can I find the documentation to show me how to
>> > do it ??
>> >
>> >
>> > Classic that is, NOT dotNET
>>
>> "Windows® Script Components provide you with an easy way to
>> create powerful, reusable COM components in script. You create
>> script components using any scripting language that supports the
>> Microsoft® ActiveX® Scripting interfaces. Script languages that
>> support these interfaces include JScript, Microsoft® Visual Basic®
>> Scripting Edition (VBScript), PERLScript, PScript, and Python."
>>
>> Introducing Windows Script Components
>> http://msdn.microsoft.com/en-us/libr...h8(VS.85).aspx
>>
>> Building Windows Script Components
>> http://www.4guysfromrolla.com/webtech/050400-1.shtml
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
function to delete a function PowerShell
ActiveX Vista General
ActiveX Vista mail
BUG: Redirecting function contents to a file truncates function lines at the width of the console PowerShell
ActiveX Control prompt "An ActiveX control on this page might be u Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46