From f0f0952dd715c4f8222cdb2599ee89d2fb837d89 Mon Sep 17 00:00:00 2001 From: benstone <1490287+benstone@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:31:47 +1000 Subject: [PATCH] Replace message boxes on debug build startup with debug prints --- src/studio/mminstal.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/studio/mminstal.cpp b/src/studio/mminstal.cpp index ffbb1400..2c433cd7 100644 --- a/src/studio/mminstal.cpp +++ b/src/studio/mminstal.cpp @@ -201,8 +201,8 @@ WORD wHaveACM() } #ifdef _DEBUG - MessageBox(NULL, "Microsoft Audio Compression Manager (Sound Mapper) is properly installed on your system", - "ACM Installed", MB_ICONINFORMATION); + OutputDebugString( + TEXT("Microsoft Audio Compression Manager (Sound Mapper) is properly installed on your system\n")); #endif return (0); @@ -248,7 +248,8 @@ WORD wHaveACMCodec(DWORD dwReqCodec) if (acmFTD.fdwSupport & ACMDRIVERDETAILS_SUPPORTF_CODEC) { #ifdef _DEBUG - MessageBox(NULL, "... is properly installed on your machine.", acmFTD.szFormatTag, MB_ICONINFORMATION); + OutputDebugString(acmFTD.szFormatTag); + OutputDebugString(TEXT("... is properly installed on your machine.\n")); #endif return (HAC_SUCCESS); } @@ -289,9 +290,8 @@ WORD wHaveICMCodec(DWORD dwReqCodec) } #ifdef _DEBUG - char szDesc[256]; - WideCharToMultiByte(CP_ACP, 0, icInfo.szDriver, -1, szDesc, 256, NULL, NULL); - MessageBox(NULL, "... is properly installed on your machine.", szDesc, MB_ICONINFORMATION); + OutputDebugStringW(icInfo.szDriver); + OutputDebugString(TEXT("... is properly installed on your machine.")); #endif return (HIC_SUCCESS);