I do have a string given to me as

CString strString = "ON,IN,1,0 ms";

I want to separate the string to another string where I have to look for the comma

I want the other string to be something like

CString strString2[4]

where

strString2[0] = "ON"
strString2[1] = "IN"
strString2[2] = "1"
strString2[3] = "0ms"

I want to know what function should I use to split that string on the form above.