Re: "scrrun.dll" not compatible in different languages?




"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> wrote in message news:FHHye.1566$BK1.672@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
<Snip>
>
> Even with VB Scripting disabled, the scrrun.dll file is, in many cases,
> still available. There are two major problems with this file. First, it
> doesn't appear on all versions of Windows. Second, even when it does
> appear, it doesn't have a consistent interface. Unfortunately, there are
> some features in FSO (and also wscript.exe) that are nearly impossible to
> implement in VB 6 without FSO or another file system interface. The API
> calls to do some of this stuff, while easy in C++, are nearly impossible to
> get right in VB6. I wholehearteldy agree that if there is a native VB
> method or function, use it instead - it will almost always be faster and is
> far less likely to have platform dependent compatiblitiy issues.
>
</Snip>

I spent a couple of days and wrote an FSO replacement using native VB6 File I/O and the Windows API. It Implements 90% of the
functionality and uses the same object model. The remaining 10% was not implemented, not because it was difficult or impossible,
because I didn't need those functions and chose not to spend the time. My purpose for writing the replacement was to drop it into
the code that I have to maintain and rid those projects of the FSO.

If I can do it anyone can.

--

Al Reid


.



Relevant Pages

  • Re: "scrrun.dll" not compatible in different languages?
    ... >I spent a couple of days and wrote an FSO replacement using native VB6 File I/O and the Windows API. ... >functionality and uses the same object model. ...
    (microsoft.public.vb.general.discussion)
  • API vs. FSO
    ... Would some of you please explain why you prefer the Windows API ... drives/directories/files functions to the FSO and its associated objects? ... VBA Automation/VB/C++/Web and DB development ...
    (microsoft.public.vb.general.discussion)
  • Re: API vs. FSO
    ... > Would some of you please explain why you prefer the Windows API ... FSO is slow, adds overhead, requires and external DLL, and is sometimes ... numerous samples exist. ...
    (microsoft.public.vb.general.discussion)
  • Re: vb
    ... it's just that the FSO has been discussed at length in the newsgroups ... the Windows API offers a lot of options for what VB does not handle easily. ... > method (aside from the fact that it's dog slow). ... VB's Dir function, with a little coding, can do the recursive search just ...
    (microsoft.public.vb.database)
  • Re: vb
    ... the Windows API offers a lot of options for what VB does not handle easily. ... FSO is *way* down the list. ... > method (aside from the fact that it's dog slow). ... VB's Dir function, with a little coding, can do the recursive search just ...
    (microsoft.public.vb.database)