I'm working in MSVC and I added UNICODE to the project settings preprocessor settings, which i thought would cause all the TCHAR's in my code to be typedef'd to wchar_t variables, ie 2 bytes wide.
But, the size of a TCHAR seems to vary through my program. I tried to copy the technique of have functionA() and functionW() versions of a function, applying it to member functions of a class. When the program runs it will step into the functions (they are class members btw, which i have an inkling might be to do with it?) and suddenly the TCHARs are 1 byte. which is a bit of a problem when i am trying to pack pointers into a TCHAR array.
Do i need to create seperate version of a class, eg a classA and classW and then hard-define char and wchar_t within to make this work maybe?