I am new to VB but I know C and, in a VB program I would like to "cast" a function parameter, just like it is done in C. The case is the following :
I have a VB function :
Function MyFunc (ByVal name As String) As Integer
and I want to call this function with an array of bytes as actual value of 'name' parameter without copying it to an intermediary string variable (this is important) :
Dim MyName(10) as Byte
' Fill MyName array with values
MyName(0) = ...
' Call MyFunc with MyName variable
result = MyFunc(MyName)
I guess I am missing here a conversion function taking an array of bytes as parameter and returning a string. Does such function exist in VB ?
Supplementary question : On Windows NT, are VB strings Unicode ?