vendredi 22 octobre 2021

How to remove a word from a CString

I have the following CString which stores the path of a file how can I remove the last three chars of the Cstring AuthFile in order to change the file name

        CString AuthFile = m_strFileName;
        
// Remove last three charters of CString and replace with "auth" 
        AuthFile.Append("auth");

Aucun commentaire:

Enregistrer un commentaire