Hey its been a while since i'v done anything with c++ but i'v just started to get back into it, just making little apps n stuff, i'v never had this kind of problem before, using Microsoft visual c++ 8, szAppPath comes out fine, but once i try adding "\\settings.ini" it turns szAppSettingsPath into Chinese symbols, just wondering if anyone would know why?
You can force the narrow API by changing your project settings, and that undefines _UNICODE. Then you remove the casts from your code and it will work.
Actually, to use wide strings the code must explicitly call the Wide versions of the functions. You only use the agnostic names if your entire code is written in an agnostic way: