This command creates (and returns) a
packet that contains the specified string. The used size, memory size
and cursor position will be the strings length.
C++ users: the string must be null terminated.
The null terminator is not copied into the packet, but is necessary
so that the length of the string can be determined.
This method is slightly faster than mnCreatePacket followed by mnSetMemorySize and mnAddStringC or mnAddString.
Char * String: This is the string that the command should copy from. The returned packet will contain this string.
Any number if no error occurred. This number is the newly created packet.
-1 if an error occurred
DBP
C++
.Net