The UTF8 character string. The array is resolved as the following in different languages APIs.
Input Parameter
C++
void Function(... const std::wstring& x, ...);
void Function(... const std::vector<wstring>& x, ...);
C#
void Function(... string x, ...);
void Function(... System.Array x, ...);
COM
void Function(... BSTR x, ...);
void Function(... SAFEARRAY* x, ...);
Output Parameter
C++
void Function(... std::wstring& x, ...);
void Function(... std::vector<wstring>& x, ...);
C#
void Function(... out string x, ...);
void Function(... out System.Array x, ...);
COM
void Function(... BSTR* x, ...);
void Function(... SAFEARRAY** x, ...);
Return Value
C++
std::wstring Function(...);
std::vector<std::wstring> Function(...);
C#
string Function(...);
System.Array Function(...);
COM
BSTR Function(...);
SAFEARRAY* Function(...);
Example Code
C++
img1->Load(L"path_to_img_file1");
std::wstring path = L"path_to_img_file2";
img2->Load(path);
std::wstring ocrString = ocrResult->String;
std::vector<std::wstring> strlist = ibData->ToStringList();
C#
img1.Load("path_to_img_file1");
string path = "path_to_img_file2";
img2.Load(path);
string ocrString = ocrResult.String;
Array strlist = ibData.ToStringList();
string[] strs = strlist.OfType<string>().ToArray();
COM
img1->Load(L"path_to_img_file1");
CString path = L"path_to_img_file2";
img2->Load(path.GetString());
CString ocrString = ocrResult->String;
SAFEARRAY* strArr = ibData->ToStringList();
CComSafeArray<BSTR> strlist;
if (strlist) strlist.Attach(strArr);