Code:
Dim str As String
str = Space(1000)
This will allocate the string with 1000 buffer size by default and this can be used easily with the C++ buffer.