diff --git a/build/win32/platform_specific_code/juce_win32_AudioCDReader.cpp b/build/win32/platform_specific_code/juce_win32_AudioCDReader.cpp
index 87403d3a25..28e6c68516 100644
--- a/build/win32/platform_specific_code/juce_win32_AudioCDReader.cpp
+++ b/build/win32/platform_specific_code/juce_win32_AudioCDReader.cpp
@@ -29,9 +29,6 @@
==============================================================================
*/
-#define WIN32_LEAN_AND_MEAN
-#define STRICT
-
#ifdef _MSC_VER
#pragma warning (disable: 4514)
#pragma warning (push)
diff --git a/build/win32/platform_specific_code/juce_win32_Messaging.cpp b/build/win32/platform_specific_code/juce_win32_Messaging.cpp
index 22e63ac414..9f5abb0436 100644
--- a/build/win32/platform_specific_code/juce_win32_Messaging.cpp
+++ b/build/win32/platform_specific_code/juce_win32_Messaging.cpp
@@ -55,9 +55,9 @@ extern long improbableWindowNumber; // defined in windowing.cpp
//==============================================================================
static LRESULT CALLBACK juce_MessageWndProc (HWND h,
- UINT message,
- WPARAM wParam,
- LPARAM lParam) throw()
+ const UINT message,
+ const WPARAM wParam,
+ const LPARAM lParam) throw()
{
JUCE_TRY
{
@@ -93,15 +93,13 @@ static LRESULT CALLBACK juce_MessageWndProc (HWND h,
return 0;
}
}
-
- return DefWindowProc (h, message, wParam, lParam);
}
JUCE_CATCH_EXCEPTION
- return 0;
+ return DefWindowProc (h, message, wParam, lParam);
}
-bool juce_dispatchNextMessageOnSystemQueue (bool returnIfNoPendingMessages)
+bool juce_dispatchNextMessageOnSystemQueue (const bool returnIfNoPendingMessages)
{
MSG m;
diff --git a/build/win32/vc8/JUCE.vcproj b/build/win32/vc8/JUCE.vcproj
index 61041a1118..cad8575920 100644
--- a/build/win32/vc8/JUCE.vcproj
+++ b/build/win32/vc8/JUCE.vcproj
@@ -136,6 +136,7 @@
/>
diff --git a/extras/example projects/example_project_for_Win32/juce_application.vcproj b/extras/example projects/example_project_for_Win32/juce_application.vcproj
index 02e1bd0fdb..f509c00563 100644
--- a/extras/example projects/example_project_for_Win32/juce_application.vcproj
+++ b/extras/example projects/example_project_for_Win32/juce_application.vcproj
@@ -174,9 +174,12 @@
LinkIncremental="1"
SuppressStartupBanner="true"
AdditionalLibraryDirectories="../../bin"
+ GenerateManifest="false"
ProgramDatabaseFile=".\Release/juce_application.pdb"
SubSystem="2"
+ OptimizeReferences="2"
EnableCOMDATFolding="2"
+ OptimizeForWindows98="1"
LinkTimeCodeGeneration="1"
TargetMachine="1"
/>
diff --git a/extras/juce demo/build/win32_vc8/jucedemo.vcproj b/extras/juce demo/build/win32_vc8/jucedemo.vcproj
index 4247934daa..a38c34f2b0 100644
--- a/extras/juce demo/build/win32_vc8/jucedemo.vcproj
+++ b/extras/juce demo/build/win32_vc8/jucedemo.vcproj
@@ -78,9 +78,13 @@
LinkIncremental="1"
SuppressStartupBanner="true"
AdditionalLibraryDirectories="../../../juce/bin"
+ GenerateManifest="false"
IgnoreDefaultLibraryNames=""
ProgramDatabaseFile=".\Release/jucedemo.pdb"
SubSystem="2"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ OptimizeForWindows98="1"
TargetMachine="1"
/>
>= 4;
-
- } while (v != 0);
-
- return String (t, (int) (((char*) end) - (char*) t));
+ return toHexString ((int) (unsigned short) number);
}
const String String::toHexString (const unsigned char* data,
@@ -2048,7 +2035,7 @@ const String String::createStringFromData (const void* const data_,
}
//==============================================================================
-const char* String::toUTF8() const
+const char* String::toUTF8() const throw()
{
if (isEmpty())
{
@@ -2074,7 +2061,7 @@ const char* String::toUTF8() const
}
}
-int String::copyToUTF8 (uint8* buffer) const
+int String::copyToUTF8 (uint8* const buffer) const throw()
{
#if JUCE_STRINGS_ARE_UNICODE
int num = 0, index = 0;
@@ -2141,7 +2128,7 @@ int String::copyToUTF8 (uint8* buffer) const
#endif
}
-const String String::fromUTF8 (const uint8* buffer, int bufferSizeBytes)
+const String String::fromUTF8 (const uint8* const buffer, int bufferSizeBytes) throw()
{
if (buffer == 0)
return empty;
diff --git a/src/juce_core/text/juce_String.h b/src/juce_core/text/juce_String.h
index ed25e00cc6..87c15e9931 100644
--- a/src/juce_core/text/juce_String.h
+++ b/src/juce_core/text/juce_String.h
@@ -982,7 +982,7 @@ public:
the method just returns the number of bytes required
(including the terminating null character).
*/
- int copyToUTF8 (uint8* destBuffer) const;
+ int copyToUTF8 (uint8* const destBuffer) const throw();
/** Returns a pointer to a UTF-8 version of this string.
@@ -990,13 +990,14 @@ public:
that is returned must not be stored anywhere, as it can be deleted whenever the
string changes.
*/
- const char* toUTF8() const;
+ const char* toUTF8() const throw();
/** Creates a String from a UTF-8 encoded buffer.
If the size is < 0, it'll keep reading until it hits a zero.
*/
- static const String fromUTF8 (const uint8* utf8buffer, int bufferSizeBytes = -1);
+ static const String fromUTF8 (const uint8* const utf8buffer,
+ int bufferSizeBytes = -1) throw();
//==============================================================================
/** Increases the string's internally allocated storage.