Hello all,
My company has recently started working with a 3rd party that has provided us with a .dll which returns a non null-terminated string. I'm not sure exactly what their rationale is behind that, as opposed to a byte array (since we are retrieving an image), but we are looking for a good way to loop through the string and extract the bytes. The further complication is that when the string object comes into c#, it is being interpreted as a 3 character string! The only other piece of information they give is what the size is supposed to be...so, if it weren't being crazily interpreted by c# we could loop through the string and create a byte array, which we could actually use.
If anyone has any ideas, I'd love to hear them.
Thanks in advance!!
-Kevin
- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
My company has recently started working with a 3rd party that has provided us with a .dll which returns a non null-terminated string. I'm not sure exactly what their rationale is behind that, as opposed to a byte array (since we are retrieving an image), but we are looking for a good way to loop through the string and extract the bytes. The further complication is that when the string object comes into c#, it is being interpreted as a 3 character string! The only other piece of information they give is what the size is supposed to be...so, if it weren't being crazily interpreted by c# we could loop through the string and create a byte array, which we could actually use.
If anyone has any ideas, I'd love to hear them.
Thanks in advance!!
-Kevin
- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.