We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-10-19 07:08 PM - last edited on 2021-09-14 01:42 PM by Noemi Balogh
UNISTR_TO_LIBXLSTR(str) (str.ToUstr ()), however I cannot get the example or my own project to build when following this code. I get an error that
no suitable conversion function from "GS::UniString::UStr" to "const wchar_t *" existsC/C++(413), is this example not up to date or is there some other way to convert the GS::UniString to the correct type for the excel library?
2020-10-19 09:38 PM
2020-11-04 07:17 PM
GS::UniChar::Layout* valptr = str.CopyUStr(0, str.GetLength()); wstring endstr; for (int j = 0; j < str.GetLength(); j++) { wchar_t temp = wchar_t(*(valptr + j)); endstr += temp; }I basically had to loop through it using pointers and convert each character. There's probably a better way to do this though.
2020-11-05 10:24 AM