You can use also a CString class in MFC:
CString szFile;
szFile.Format("portlog%d.dbf", i);
AfxMessageBox(szFile);
>Hi, when i try to convert int to char with _itoa, dont work in my machine, exist a different way for do this job?
>
>this is my code:
>
>char szFile[12] = "";
>char buffer[33];
>int i = 0;
>_itoa(i,buffer,10);
>lstrcat( szFile, "portlog");
>lstrcat( szFile, buffer);
>lstrcat( szFile, ".dbf");
>//lstrcpy(szFile,szFile);
>AfxMessageBox(szFile);
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only