Re: convert WCHAR in byte[] to string
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Thu, 21 Apr 2005 17:22:57 +0200
"centrino" <centrino@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D9D5C5E8-646E-4B01-8B22-6B551C82B7AC@xxxxxxxxxxxxxxxx
>i get:
>
>
> pBufferSize: 772
> pBuffer: \Device\{91E405CA-9D5E-4366-BB44-3B27E09C6C35}
>
> i think i would get more, i don't know !?
>
> regards
>
>
>
I guess you do have more. Your pBufferSize is 772 ( don't know what exactly,
chars or bytes), the string is shorter anyway.
I guess the buffer returned contains strings delimitted with 'nulls', like
this...
\Device\{91E405CA-9D5E-4366-BB44-3B27E09C6C35}\0\0
\Device\{..........................................................}\0\0
You can check the stringbuilders Length after return.
If I'm right, you can use ToString(int startindex, int length) to retrieve
the individual strings from the StringBuilders buffer.
Willy.
.
- References:
- convert WCHAR in byte[] to string
- From: centrino
- Re: convert WCHAR in byte[] to string
- From: Willy Denoyette [MVP]
- Re: convert WCHAR in byte[] to string
- From: centrino
- Re: convert WCHAR in byte[] to string
- From: Willy Denoyette [MVP]
- Re: convert WCHAR in byte[] to string
- From: centrino
- convert WCHAR in byte[] to string
- Prev by Date: Re: Gdi+ questions
- Next by Date: Re: Howto ...
- Previous by thread: Re: convert WCHAR in byte[] to string
- Next by thread: resource not found error
- Index(es):
Relevant Pages
|