Oops, STR2CSTR is obsolete, use StringValuePtr() instead.