Re: how to read two bytes from string and convert to long?
- From: "Sam Hobbs" <samuel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 6 Aug 2005 10:08:20 -0700
"J French" <erewhon@xxxxxxxxxx> wrote in message
news:42f47f05.8559932@xxxxxxxxxxxxxxxxxxxxxxx
>
> If you have set the buffer up as a String then there is a small chance
> that under some regional settings the ANSI -> UNICODE conversion will
> do something horrible
Probably. In fact, if this is a problem, then it is likely to always be a
problem.
> It is actually quite unusual for Windows APIs to return the required
> length in the data buffer
> - normally the required length is returned in a variable
Yes. When I said it is common, I was mainly refering to the technique of
calling a function twice; once to get the sizw required for the data, then
again for the data.
> Realistically increasing the size of the buffer and re-showing the
> Dialog is a pretty nasty was of confusing the User
Where is it suggested that that be done?
> Interestingly one could quite easily select more than 256 files each
> with a name 256 (? or 255) long, in which case those 2 bytes would be
> simply giving back a lie. (Just checked MAX_PATH is actually 260)
That is a guess, correct? We don't know what the dialog would do if we
select so many files that the size required would be too big. It is possible
that the dialog would not allow it.
.
- Follow-Ups:
- Re: how to read two bytes from string and convert to long?
- From: J French
- Re: how to read two bytes from string and convert to long?
- References:
- how to read two bytes from string and convert to long?
- From: Nomospam
- Re: how to read two bytes from string and convert to long?
- From: J French
- how to read two bytes from string and convert to long?
- Prev by Date: Re: how to read two bytes from string and convert to long?
- Next by Date: Re: how to read two bytes from string and convert to long?
- Previous by thread: Re: how to read two bytes from string and convert to long?
- Next by thread: Re: how to read two bytes from string and convert to long?
- Index(es):
Relevant Pages
|