I can't find a way to initialize a CharBufferString from a WString.
I've done something similar for a STRING:
astring : STRING(1000);
cbs : Stu.CharBufferString(uiBufferSize:=2000, stringType:=__SYSTEM.TYPE_CLASS.TYPE_STRING);
pst : POINTER TO STRING;
astring:='... a very long string ...';
pst := cbs.m_cbpBuffer;
But I can't find a "FromString" method that takes a WSTRING.
Thanks in advance.
You need to use the method Initialize passing the pointer to the WSTRING and the proper __SYSTEM.TYPE_CLASS, i.e __SYSTEM.TYPE_CLASS.TYPE_WSTRING.
Log in to post a comment.