G
Guest
Hi, I am using an old Win32 DLL that expects a LPBYTE as a parameter.
The Stringbuilder appears to be working, the problem is that the component
is sending me a string with NULL characters in the middle, and my
StringBuilder is shrinking the message. Example
StringBuilder buffer = new StringBuilder(255);
Win32 sends : VB123421414\0\0\0\0HRA0021331
StringBuilder reads : VB123421414
Is there any way to read the full buffer? The capacity is 255, how can I
read position 240 for example? is raising an error if I put buffer[240]
Thanks!!!!
SAlva
The Stringbuilder appears to be working, the problem is that the component
is sending me a string with NULL characters in the middle, and my
StringBuilder is shrinking the message. Example
StringBuilder buffer = new StringBuilder(255);
Win32 sends : VB123421414\0\0\0\0HRA0021331
StringBuilder reads : VB123421414
Is there any way to read the full buffer? The capacity is 255, how can I
read position 240 for example? is raising an error if I put buffer[240]
Thanks!!!!
SAlva