.NET Strings & NULLS
-
In VB6 you used to be able to have strings that had embedded nulls. I can't seem to find this functionality in the .Net Frame work. My problem is I have binary data that I need to convert into a string in order to hand that data to a ActiveX COM control. However, after I convert the data over to a string in .Net I loose all of the string past the first null. I must be missing something. Is there a way around this Thanks Nick :eek: Forever Developing
-
In VB6 you used to be able to have strings that had embedded nulls. I can't seem to find this functionality in the .Net Frame work. My problem is I have binary data that I need to convert into a string in order to hand that data to a ActiveX COM control. However, after I convert the data over to a string in .Net I loose all of the string past the first null. I must be missing something. Is there a way around this Thanks Nick :eek: Forever Developing
Nicholas Cardi wrote: My problem is I have binary data that I need to convert into a string in order to hand that data to a ActiveX COM control I would directly marshall the byte array to a BSTR. (MarshalAs attribute).