What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Browse For File

Browse For File
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Browse For File
quote:
Originally posted by Choli
:mipdodgy: Cookie... this thread is 5 years old...
Yup, the '90s are coming back :D
Nah, but joking aside, as I said, the request to have a 'BrowseForFile' dialog pops up now and then and will continue to pop up in the future no doubt. And apparently people keep on referring to this thread and/or use code from this thread (which is main reason why I posted this here and not in that other thread). I found many links pointing to Matty's post here, even in very recent posts. So, nothing wrong with (finaly) updating it a bit in that case imho.

quote:
Originally posted by Choli
quote:
Originally posted by CookieRevised
256 like in Choli's code is way too small.
Sure, but if I remember well, I think that old versions of Windows (maybe 98, or 2000) don't allow more than that, do they?. Or something like that :P
Not exactly; +-256 (or rather 260, which is MAX_PATH) is the absolute required minimum (eg: when you are sure you don't return multiple selections and with short file names). It's the minimum required size to hold exactly one complete path and file name (in short name notation.... because in long name notation the name itself can even be MAX_PATH characters). So, even back in the old days, the buffer could be (and better should be) much much bigger to hold both the returned path and filename.

For your Translator tool this was never a real problem. But since people copy that code without changing anything in it and using it as-is, problems do arise though.

This post was edited on 04-11-2011 at 08:51 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-11-2011 08:13 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Browse For File - by Volv on 06-24-2006 at 02:04 AM
RE: Browse For File - by matty on 06-24-2006 at 02:19 AM
RE: Browse For File - by Volv on 06-24-2006 at 05:16 AM
RE: Browse For File - by Choli on 06-24-2006 at 09:32 AM
RE: Browse For File - by CookieRevised on 04-11-2011 at 07:46 AM
RE: RE: Browse For File - by Amec on 04-14-2011 at 06:54 PM
RE: Browse For File - by Choli on 04-11-2011 at 06:41 PM
RE: Browse For File - by CookieRevised on 04-11-2011 at 08:13 PM
RE: Browse For File - by matty on 04-14-2011 at 07:06 PM
RE: Browse For File - by CookieRevised on 04-14-2011 at 07:40 PM
RE: RE: Browse For File - by Amec on 04-14-2011 at 07:53 PM
RE: Browse For File - by CookieRevised on 04-14-2011 at 07:58 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On