Note that the string type in VC uses wide characters, otherwise it will not match. Because VB uses unicode encoding. Also, the rows and columns of the two-dimensional arrays of VB and VC are just reversed. It is best not to write DLLs in the two-dimensional array format.