ByteArrayToString and StringToByteArray

Category:
String Manipulation
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
ByteArrayToString, converts a Unicode/ANSI byte array to Vb string. StringToByteArray, converts a string to a Unicode/ANSI byte array , optionaly preserves terminating null.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: