ShankarJ
Programmer
- Aug 9, 2003
- 856
Hi!
I am quite new to C# and am writing a COM wrapper for a .NET Control. One of the functions requires a Byte array as input and I am having problems passing a SafeArray from the calling application. The String object has a ToCharArray() method but none to convert to Byte array. Do I have to go through all the string characters and assign a VAL(SubStringChar) to the Byte array?
Regards
I am quite new to C# and am writing a COM wrapper for a .NET Control. One of the functions requires a Byte array as input and I am having problems passing a SafeArray from the calling application. The String object has a ToCharArray() method but none to convert to Byte array. Do I have to go through all the string characters and assign a VAL(SubStringChar) to the Byte array?
Regards