If you are using VS.NET 2002 or later, the CString class includes the member function AppendFormat, which does what you are asking. If you are using VC6, you will need to do something like this:
CString str,tmp;
str = ";kj;lak;sajlg";
tmp.Format(" qer23 %d asdgsgd", var);
str += tmp;
Software Zen: delete this;