View Single Post
Old 09-20-2019, 06:08 AM   #14
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Regarding the Unicode etc mess, like I mentioned above, you need to set the Visual Studio project to be in the Multibyte Character mode. (The default is Unicode, which isn't compatible with WDL, Swell nor Reaper.) Then the code can be the same for both Windows and Swell, for example you can just use the MessageBox function (without the A or W suffix) the same way for all platforms, *if* you don't want to support Unicode characters. *If* you want Unicode support, you will have to rely on the Cockos provided functions from the win32_utf8.h header. For example, to make message boxes you would need to use the Cockos provided function MessageBoxUTF8 from that header. (Of course the related win32_utf8.c file also needs to be built in your project.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote