Hello, I can't find a way to initialize a CharBufferString from a WString.
I've done something similar for a STRING:
Declaration:
astring : STRING(1000); cbs : Stu.CharBufferString(uiBufferSize:=2000, stringType:=__SYSTEM.TYPE_CLASS.TYPE_STRING); pst : POINTER TO STRING;
Code:
astring:='... a very long string ...'; cbs.FromString(astring); pst := cbs.m_cbpBuffer;
But I can't find a "FromString" method that takes a WSTRING. Any idea?
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.
Hello stmos, I just start to work with the CharBufferString. Do you maybe have a simple example project to understand how it works?
Hi, I'm sorry, but no... I don't have a sample project at the moment. I'm not even really an expert with the CharBufferString... π’
Ok, thanks for the quick feedback
Log in to post a comment.
Hello,
I can't find a way to initialize a CharBufferString from a WString.
I've done something similar for a STRING:
Declaration:
Code:
But I can't find a "FromString" method that takes a WSTRING.
Any idea?
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.
Hello stmos,
I just start to work with the CharBufferString. Do you maybe have a simple example project to understand how it works?
Hi,
I'm sorry, but no... I don't have a sample project at the moment. I'm not even really an expert with the CharBufferString... π’
Ok, thanks for the quick feedback