Since FMOD Ex (and FMOD 3, but that’s irrelavant) take char* parameters for filename, how would I pass a Unicode filename to FMOD? I don’t need the functionality for actual internationalization, but it would be helpful when compiling Windows programs…
Here’s the thing. When the UNICODE macro is defined, TCHAR becomes a wchar_t instead of a char, and all Windows APIs then take wchar_t* for their string parameters. For best compatibility with this, all my string buffers are defined as TCHAR. Problem is, you can’t pass a wchar_t* to FMOD, so the FMOD calls won’t compile if I define UNICODE.
- Bruce asked 11 years ago
Please login first to submit.