try using CStringArray instead of a C style array.