Re: API vs. FSO
From: Joe (Joe_at_discussions.microsoft.com)
Date: 09/28/04
- Next message: Ken Halter: "Re: Releasing memory"
- Previous message: Ralph: "Re: Foreign language issues"
- In reply to: Ken Halter: "Re: API vs. FSO"
- Next in thread: Ken Halter: "Re: API vs. FSO"
- Reply: Ken Halter: "Re: API vs. FSO"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Sep 2004 12:49:14 -0700
Ken, Thanks for your reply. Please see below.
"Ken Halter" wrote:
>
>
> Joe wrote:
>
> > Would some of you please explain why you prefer the Windows API
> > drives/directories/files functions to the FSO and its associated objects?
> > Other than performance, why choose one over the other?
>
> The only benefit the FSO has is a decent object model. Other than that,
> there's zero reason to use it. VB's runtime has everything you need to
> access files of any type built right in (not true with FSO).
By VB's runtime, do you mean the API functions or functions like Dir, etc?
I don't know enough about VB's runtime to understand this statement.
>
> > Personally, I prefer the API calls because somewhere in my mind, I believe
> > that they are more robust. I don't actually know if this is true. Is it?
>
> FSO's slow....
>
> Performance Comparison - FSO vs. API
> http://vbnet.mvps.org/index.html?code/fileapi/fsoapicompare.htm
>
> > I've also noticed that some are rabidly contre the Scripting Objects (FSO
> > and Dictionary). Again, would you please explain why?
>
> If, by contre, you mean dislike, there are several reasons. First, it's
> scripting (=slow), second, using the API or VB's built in file support,
> there's no need to distribute an additional library... third.. that
> library stands a good chance of breaking someone elses PC... fourth,
> some virus scanners hate scripting of any kind.
Scripting, as opposed to compiled? What engibe executes the scripted code
for the FSOs?
VB's built in file support? Does this include Dir, ChDir, etc?
How does the library stand a good chance of breaking someone elses PC?
Thanks, Ken.
>
> > TIA,
>
> --
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> Please keep all discussions in the groups..
>
- Next message: Ken Halter: "Re: Releasing memory"
- Previous message: Ralph: "Re: Foreign language issues"
- In reply to: Ken Halter: "Re: API vs. FSO"
- Next in thread: Ken Halter: "Re: API vs. FSO"
- Reply: Ken Halter: "Re: API vs. FSO"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|