We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

Problems with String functions

Anonymous
Not applicable
Hy there!

I'm having a lot of troubles recently in developing Archicad add-ons because I can't any <string.h> function to work. It seems that when encountering a call to one of these functions, the add-on simply stops. Any ideas?
2 REPLIES 2
Ralph Wessel
Mentor
Marius wrote:
Hy there!

I'm having a lot of troubles recently in developing Archicad add-ons because I can't any <string.h> function to work. It seems that when encountering a call to one of these functions, the add-on simply stops. Any ideas?
Don't use any standard C/C++ functions in conjunction with the ArchiCAD API. They make assumptions about the string representation that aren't necessarily true (hence the crashes). Use the ArchiCAD API String Manager instead (refer to the GSRoot documentation, subsection on String Manager).
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Thank you!