Results 1 to 4 of 4

Thread: How can I use VBscript like I use VB?

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I use VB a lot in my programming and I want to use the abilities of VBScript. But what are the problems with it, like I can't use APIs can I?
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You can't use APIs. ActiveX dll's can be used though. I believe that any COM component will work but it needs to be a dll because IIS will not allow running processes outside of its own. (or rather NT will not allow it)

    I guess you'd need to be more specific on what your trying to do.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I just was wanting to know its limits because I might want to use it to make my programs more adaptable i.e. You can't recompile a exe at run time (well I don't know how to) but with a .vbs file its easy to rewrite it.
    And this could be quite useful.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Yes, but a vbs has to run inside of a container application like Outlook or IE or one you wrote yourself (which would require the MS VBScript license.. about $50k). As a standalone language, VBScript is not even a contender.

    Best thing to do is continue to use VB and create dll's for routines that are succeptable to frequent change. They are much easier to replace/update.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width