Hmm maybe my problem lies somewhere else...do u mind lookin at my code? I am tryin to remove all comments from this CString (i.e anywhere I see a ;

.
CString CParamString::excludeComments(CString &s)
{
TRACE("Entering excludeComment(CString &s)\n"

;
int iSLength = s.GetLength();
int iSFindSemiColons = s.Find(";;"

;
int iSFindCR = (s.Right(iSFindSemiColons)).Find('\n'); //Find a Carriage Return to find end of line
int iSFindTab = (s.Right(iSFindSemiColons)).Find('\t'); //Find a Tab to find end of line
//TRACE("This is a Carriage Return: %d\n", );
TRACE("iSLength: %d\n", iSLength);
TRACE("iSFindSemiColons: %d\n", iSFindSemiColons);
TRACE("iSFindCR: %d\n", iSFindCR);
TRACE("iSFindTab: %d\n", iSFindTab);
if(-1 != iSFindSemiColons) //If enter here, comments have been found
{
cszTmp += s.Left((iSLength - iSFindSemiColons)); //Add everything before the comments (ie ;

to the CString
if(-1 != iSFindCR) //If enter here the end of the line is a Carriage Return and use everything past it to search for next set of comments
{
excludeComments(s.Right(iSFindCR));
}
if(-1 != iSFindTab) //If enter here there was a tab, check everything past it for comments
{
excludeComments(s.Right(iSFindTab));
}
else //If enter here neither tab nor carriage return were at the end, so check
{
excludeComments(s);
}
}
return cszTmp += s; //Done searching for comments, return final answer (ie, a CString with no comments)
}