GetOpenFileName
-
When calling GetOpenFileName w/ multi-select enabled, is there a way to determine the buffer space required by the lpstrFile pointer ?
I don't think so.
GetOpenFileName()
returns FALSE if you specify a buffer that's too small. I ran into this annoying problem some time ago, and now always allocate a generous (64K) buffer when I call the multiselect version ofGetOpenFileName()
. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com -
When calling GetOpenFileName w/ multi-select enabled, is there a way to determine the buffer space required by the lpstrFile pointer ?
<click> This link is solution that works for win 98. I am trying to figure out how to do this with W2K without much luck so far. --- CPUA 0x5041 Sonork 100.11743 Chicken Little It may be that your sole purpose in life is simply to serve as a warning to others.