From 6ddf94788fb531c460ebb4d1351ac4df760fe53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=94ins=E2=80=94?= Date: Wed, 20 Oct 2021 13:14:16 +0200 Subject: [PATCH] Modify proyects, add images and update close event in wpf version --- C++ splash/SplashScreenStarter.rc | 2 +- C++ splash/Splash_C++.vcxproj | 32 ++++++++++++++++++++------- C++ splash/Splash_C++.vcxproj.filters | 3 +++ MASM x64/Splash_x64.vcxproj | 6 +++++ MASM x64/Splash_x64.vcxproj.filters | 1 + MASM x86/Splash_x86.vcxproj | 5 +++++ Test - C# WPF/App.xaml.cs | 4 +--- Test - C# WPF/MainWindow.xaml | 6 ++--- Test - C# WPF/MainWindow.xaml.cs | 1 + Test - C# WPF/Test - WPF.csproj | 1 - 10 files changed, 45 insertions(+), 16 deletions(-) diff --git a/C++ splash/SplashScreenStarter.rc b/C++ splash/SplashScreenStarter.rc index b2ea5ff..de542d0 100644 --- a/C++ splash/SplashScreenStarter.rc +++ b/C++ splash/SplashScreenStarter.rc @@ -73,7 +73,7 @@ END // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. -//IDI_SPLASHICON ICON "logo-ergolux.ico" +//IDI_SPLASHICON ICON "small.ico" ///////////////////////////////////////////////////////////////////////////// diff --git a/C++ splash/Splash_C++.vcxproj b/C++ splash/Splash_C++.vcxproj index e4d0f88..7247279 100644 --- a/C++ splash/Splash_C++.vcxproj +++ b/C++ splash/Splash_C++.vcxproj @@ -143,17 +143,22 @@ - MaxSpeed - true + MinSpace + false WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) MultiThreaded true Use Level3 ProgramDatabase - Neither - Default - Sync + Size + stdcpp17 + false + true + true + true + Default + Default shlwapi.lib;windowscodecs.lib;%(AdditionalDependencies) @@ -165,6 +170,7 @@ + UseFastLinkTimeCodeGeneration @@ -191,9 +197,19 @@ - - - + + true + + + true + + + false + false + + + true + diff --git a/C++ splash/Splash_C++.vcxproj.filters b/C++ splash/Splash_C++.vcxproj.filters index a4ae786..52dc6fd 100644 --- a/C++ splash/Splash_C++.vcxproj.filters +++ b/C++ splash/Splash_C++.vcxproj.filters @@ -78,5 +78,8 @@ + + Resource Files + \ No newline at end of file diff --git a/MASM x64/Splash_x64.vcxproj b/MASM x64/Splash_x64.vcxproj index 583fe8e..791d527 100644 --- a/MASM x64/Splash_x64.vcxproj +++ b/MASM x64/Splash_x64.vcxproj @@ -48,6 +48,12 @@ false + true + + + + + false diff --git a/MASM x64/Splash_x64.vcxproj.filters b/MASM x64/Splash_x64.vcxproj.filters index 30a6fc3..b066366 100644 --- a/MASM x64/Splash_x64.vcxproj.filters +++ b/MASM x64/Splash_x64.vcxproj.filters @@ -16,5 +16,6 @@ + \ No newline at end of file diff --git a/MASM x86/Splash_x86.vcxproj b/MASM x86/Splash_x86.vcxproj index b619eb8..00d4537 100644 --- a/MASM x86/Splash_x86.vcxproj +++ b/MASM x86/Splash_x86.vcxproj @@ -42,6 +42,11 @@ false + + + false + + {4164AA65-1EF9-4E69-899B-D1BED776070B} 10.0 diff --git a/Test - C# WPF/App.xaml.cs b/Test - C# WPF/App.xaml.cs index 1b95dac..4986ff0 100644 --- a/Test - C# WPF/App.xaml.cs +++ b/Test - C# WPF/App.xaml.cs @@ -26,9 +26,7 @@ protected override void OnStartup(StartupEventArgs e) private void CloseSplashScreen() { // Signal the native process that launched us to close the splash screen - using var closeSplashEvent = new EventWaitHandle(false, - EventResetMode.ManualReset, - "CloseSplashScreenEventSplashScreenStarter") + using var closeSplashEvent = new EventWaitHandle(false, EventResetMode.ManualReset, "CloseSplashScreenEvent"); closeSplashEvent.Set(); } } diff --git a/Test - C# WPF/MainWindow.xaml b/Test - C# WPF/MainWindow.xaml index d2d2182..4e34fd9 100644 --- a/Test - C# WPF/MainWindow.xaml +++ b/Test - C# WPF/MainWindow.xaml @@ -7,9 +7,9 @@ mc:Ignorable="d" Title="Main window" Height="450" Width="800" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize"> -