Re: Using GetSaveFileName API with VB6

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



MM wrote:
Message to Karl:
I am so far unable to install the Windows 98/NT Platform SDK on a
temporary machine, since at every turn I am stymied by Microsoft's
lack of backward support.

Okay, okay, I went ahead and installed the January 1997 (Archive Edition) of MSDN.
As a point of historical interest, the "Minimum Install" option would have only
consumed 5MB, but I picked the "Maximum Install" option which consumed a whopping
11MB! <g>

Anyway, this is what it says (under the Windows 3.1 docs) about the lpstrDefExt
member of the OPENFILENAME structure:

"Points to a buffer that contains the default extension. The GetOpenFileName or
GetSaveFileName function appends this extension to the filename if the user fails to
enter an extension. If the filename with the default extension is not found,
GetOpenFileName or GetSaveFileName attempts to find the file by using the name
exactly as the user typed it. This string can be any length, but only the first
three characters are appended. The string should not contain a period (.). If this
member is NULL and the user fails to type an extension, no extension is appended.
This member is filled on input."

As I was guessing, that's substantially the same as what you quoted from the docs 12
years later.


By the way, does ANY company have more broken web links than Mickey?

Nope. That's their main strategy in "competing" with Google -- it *really*
embarrasses them that Google is so much better at finding stuff on *their* website
than their own Live search is. <bg>
--
..NET: It's About Trust!
http://vfred.mvps.org


.



Relevant Pages