Posted March 22, 201114 yr Hello.I have no idea why this code won't compile. I get: error C2440: 'return' : cannot convert from 'char *' to 'const char' error. I compiled it before.Can anyone take a look at the solution and try to fix the problem? It is only few KB is size and project is already created.Thanks in advance!Project.rar
March 22, 201114 yr static const char* FileNameOnly(char* aFileName){ char* pc = strrch r(aFileName, '\\'); if (pc) return (const char*)(pc+1); return (const char*)aFileName;} Edited March 22, 201114 yr by BoRoV
Create an account or sign in to comment