1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-09 04:30:09 +00:00

Major overhaul of the String class, to rely more heavily on the CharPointer_UTF classes. On win32, the juce_wchar type is now a typedef for a 32-bit int, rather than the 16-bit wchar_t. The String class now has toUTF8(), toUTF16() and toUTF32() methods to retrieve the string in different formats.

This commit is contained in:
Julian Storer 2011-01-27 20:34:05 +00:00
parent 1b05a7d46d
commit e235912ae5
79 changed files with 2765 additions and 2028 deletions

View file

@ -318,7 +318,7 @@ void* PlatformUtilities::loadDynamicLibrary (const String& name)
JUCE_TRY
{
result = LoadLibrary (name);
result = LoadLibrary (name.toUTF16());
}
JUCE_CATCH_ALL
@ -348,7 +348,7 @@ public:
Pimpl (const String& name, const int timeOutMillisecs)
: handle (0), refCount (1)
{
handle = CreateMutex (0, TRUE, "Global\\" + name.replaceCharacter ('\\','/'));
handle = CreateMutex (0, TRUE, ("Global\\" + name.replaceCharacter ('\\','/')).toUTF16());
if (handle != 0 && GetLastError() == ERROR_ALREADY_EXISTS)
{