From 2ccebb5474087eb93d206140e53b73ef47037933 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sun, 9 Dec 2012 19:36:37 +0100 Subject: [PATCH] added message box if vc redist are missing --- Vocaluxe/Lib/Input/WiiMote/WiiMoteLib.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Vocaluxe/Lib/Input/WiiMote/WiiMoteLib.cs b/Vocaluxe/Lib/Input/WiiMote/WiiMoteLib.cs index 888301e5..13132a5d 100644 --- a/Vocaluxe/Lib/Input/WiiMote/WiiMoteLib.cs +++ b/Vocaluxe/Lib/Input/WiiMote/WiiMoteLib.cs @@ -5,6 +5,7 @@ using System.IO; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Threading; +using System.Windows.Forms; using Vocaluxe.Base; using Vocaluxe.Lib.Draw; @@ -187,6 +188,12 @@ namespace Vocaluxe.Lib.Input.WiiMote if (!CHIDAPI.Init()) { CLog.LogError("WiiMoteLib: Can't initialize HID API"); + string msg = "Please install the Visual C++ Redistributable Packages 2012!\n You can find them at: http://www.microsoft.com/en-us/download/details.aspx?id=30679"; + + CLog.LogError(msg); + MessageBox.Show(msg, CSettings.sProgramName, MessageBoxButtons.OK, MessageBoxIcon.Error); + + _Active = false; return false; }