use c++ linkage for text events and other arrays