Re: why write a script when u can write a vb6 app

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Michael Harris \(MVP\) ("Michael)
Date: 03/31/04


Date: Tue, 30 Mar 2004 19:47:42 -0800


> Ofcourse writing a script is easier and faster, but writing an app
> using VB 6 is also not that difficult.
> And I get to use visual studio which is much much better than using
> text editor or some other not so good editors.
>
> What are the things that can NOT be done in a VB 6 app that could be
> done in vbscript/wsh ?
> Thoughts?

VB6 does not support console mode programs...

VB6 does not support program exit codes (the ExitProcess hack is risky and
unsupported)...

Both may be key requirements for unattended, scheduled script execution,
especially under 3rd party job schedulers (like we use were I work) that
support cross-platform job dependency chains based on exit codes.

VBScript indirectly supports both of these via the WSH hosts (cscript.exe
for console mode execution) and WScript.Quit for exit code.

Of course, VB.Net doesn't have the limitations of VB6...

-- 
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US


Relevant Pages

  • Re: why write a script when u can write a vb6 app
    ... >> Ofcourse writing a script is easier and faster, ... Because I have to assume that only I will modify a VB app, ... With a script, I ... VBScript can deal with byte arrays, but cannot declare or modify them. ...
    (microsoft.public.scripting.vbscript)
  • Re: why write a script when u can write a vb6 app
    ... > Ofcourse writing a script is easier and faster, ... > editor or some other not so good editors. ... > What are the things that can NOT be done in a VB 6 app that could be done ...
    (microsoft.public.scripting.vbscript)
  • Re: why write a script when u can write a vb6 app
    ... > Ofcourse writing a script is easier and faster, ... > editor or some other not so good editors. ... > What are the things that can NOT be done in a VB 6 app that could be done ...
    (microsoft.public.sms.setup)
  • Re: Creating Secure Standalone Binaries for 9/X
    ... I can't figure out how to lock down the app ... so the IP of the script is unprotected. ... does is copy the text of your script into the resource: ... Of course, as Andreas said, it's probably just a matter that the file type ...
    (comp.lang.tcl)
  • Re: WebBrowser Control (VB5, VB6) & window.external. Possible?
    ... VB app for this information. ... <SCRIPT Language=JavaScript> ... app has to know something about the webpage objects, ... code has to know something about the hosting application. ...
    (microsoft.public.vb.general.discussion)