I've got a bit of a tedious 6-months to a year ahead of me. I'm working on a program with 1 million+ lines of code (much of it written in the early/mid 90's) and it has been decided that it should now support a UNICODE build. I've researched and found many of the best practices:
- using the _t version of many microsoft and C++ methods like _stprintf_s() instead of sprintf_s() or _tcsstr() instead of strstr(),
- wrapping all coded strings that need to be TCHAR* like so _T("string") or _T('c'),
- replacing most char* with LPTSTR and most const char* with LPCTSTR and char with TCHAR using CA2T() and CT2A() to convert between char* and LPTSTR if necessary,
I was wondering if anyone has written a script that is capable of automatically making many of these changes, since they could save me MONTHS of work.