I am using the _findFirst and _findNext methods found at:

I am using these functions to find files with a certain extension of ".tfw". Once the file is found, I would like to change the extension to ".tfwUTM27".

However, I can't seem to change the file name using C++'s string operations. How do I change the file name?