Quote:
strcpy(carrSamplFreq,(LPCSTR) (CStringA)csSamplFreq);
This is not the correct way for assigning a (wide)
CString
content to character array.
Quote:
pcSamplFreq += usCurPos;
sprintf(csTemp,"%s",pcSamplFreq);
I suppose
usCurPos
is out-of-control there.
I think in your case it would probably better if you tell us what are trying to achieve instead of insist on fixing the ugly
CString-character array
mixture.