outStr += theVar;
outStr.AppendInt(theVar);
void FormatAndPrintOutput(const char *theInput, const char *theVar, int outputMode){	nsCString outStr;	CString strMsg;	outStr = theInput;	outStr += theVar;	strMsg = outStr.get();	switch (outputMode)	{	case 0:		AfxMessageBox(strMsg); 		break;	case 1:		WriteToOutputFile(outStr.get());		break;	case 2:		WriteToOutputFile(outStr.get());		AfxMessageBox(strMsg); 		break;	}}