diff --git a/dlanguilib.visualdproj b/dlanguilib.visualdproj
index 68c1fdd7..05ef64b3 100644
--- a/dlanguilib.visualdproj
+++ b/dlanguilib.visualdproj
@@ -89,6 +89,7 @@
$(OutDir)\$(ProjectName).lib
1
+ 2
@@ -141,7 +142,7 @@
0
0
$(DMDInstallDir)windows\bin\dmd.exe
- 3rdparty ../DerelictGL3/source
+ 3rdparty ../DerelictGL3/source $(SolutionDir)/../dlib
$(ConfigurationName)
$(OutDir)
@@ -160,7 +161,7 @@
0
0
-
+ Unicode
0
0
0
@@ -183,6 +184,7 @@
$(OutDir)\$(ProjectName).lib
1
+ 1
diff --git a/examples/example1/example1.visualdproj b/examples/example1/example1.visualdproj
index 8170912c..d5a2648f 100644
--- a/examples/example1/example1.visualdproj
+++ b/examples/example1/example1.visualdproj
@@ -89,6 +89,7 @@
$(OutDir)\$(ProjectName).exe
1
+ 2
-profile
@@ -141,7 +142,7 @@
0
0
$(DMDInstallDir)windows\bin\dmd.exe
- ../../src ../../3rdparty ../../3rdparty/libpng/source
+ ../../src ../../3rdparty ../../3rdparty/libpng/source $(SolutionDir)/../dlib
$(ConfigurationName)
$(OutDir)
@@ -183,6 +184,7 @@
$(OutDir)\$(ProjectName).exe
1
+ 1
diff --git a/examples/helloworld/helloworld.visualdproj b/examples/helloworld/helloworld.visualdproj
index 3b8dcc69..0530db0d 100644
--- a/examples/helloworld/helloworld.visualdproj
+++ b/examples/helloworld/helloworld.visualdproj
@@ -142,7 +142,7 @@
0
0
$(DMDInstallDir)windows\bin\dmd.exe
- ../../src ../../3rdparty ../../3rdparty/libpng/source
+ ../../src ../../3rdparty ../../3rdparty/libpng/source $(SolutionDir)/../dlib
$(ConfigurationName)
$(OutDir)
diff --git a/examples/tetris/tetris.visualdproj b/examples/tetris/tetris.visualdproj
index 0eb9d4a0..2e8c2b77 100644
--- a/examples/tetris/tetris.visualdproj
+++ b/examples/tetris/tetris.visualdproj
@@ -142,7 +142,7 @@
0
0
$(DMDInstallDir)windows\bin\dmd.exe
- ../../src ../../3rdparty ../../3rdparty/libpng/source
+ ../../src ../../3rdparty ../../3rdparty/libpng/source $(SolutionDir)/../dlib
$(ConfigurationName)
$(OutDir)
diff --git a/src/dlangui/platforms/common/platform.d b/src/dlangui/platforms/common/platform.d
index 81a431e1..2b1dab4a 100644
--- a/src/dlangui/platforms/common/platform.d
+++ b/src/dlangui/platforms/common/platform.d
@@ -753,8 +753,13 @@ mixin template APP_ENTRY_POINT() {
extern (Windows) int WinMain(void* hInstance, void* hPrevInstance,
char* lpCmdLine, int nCmdShow)
{
- return DLANGUIWinMain(hInstance, hPrevInstance,
+ try {
+ return DLANGUIWinMain(hInstance, hPrevInstance,
lpCmdLine, nCmdShow);
+ } catch (Exception e) {
+ Log.e("Exception: ", e);
+ return 1;
+ }
}
}
}