From fc4dfd6f430bcc5945f504e4a3ee4bcfa5a8715a Mon Sep 17 00:00:00 2001 From: rattatwinko Date: Thu, 7 May 2026 08:49:42 +0200 Subject: [PATCH] remove pragma linker comment (in main.cpp), add to linker inputfor solution. rename slnx file to hyrax --- bounce_cpp/bounce_cpp.vcxproj | 6 ++++-- bounce_cpp/bounce_cpp.vcxproj.filters | 12 ++++++++++++ bounce_cpp/main.cpp | 7 ------- bounce_cpp.slnx => hyrax.slnx | 0 4 files changed, 16 insertions(+), 9 deletions(-) rename bounce_cpp.slnx => hyrax.slnx (100%) diff --git a/bounce_cpp/bounce_cpp.vcxproj b/bounce_cpp/bounce_cpp.vcxproj index fb7c52f..1e0ccf0 100644 --- a/bounce_cpp/bounce_cpp.vcxproj +++ b/bounce_cpp/bounce_cpp.vcxproj @@ -23,7 +23,8 @@ Win32Proj {61c6f079-9b1c-4d66-b9c7-4646f87181a6} bouncecpp - 10.0 + 10.0.26100.0 + hyrax @@ -48,7 +49,7 @@ Application false - v145 + v143 true Unicode @@ -125,6 +126,7 @@ Windows true + gdiplus.lib;winmm.lib;%(AdditionalDependencies) diff --git a/bounce_cpp/bounce_cpp.vcxproj.filters b/bounce_cpp/bounce_cpp.vcxproj.filters index e8ca333..1000f55 100644 --- a/bounce_cpp/bounce_cpp.vcxproj.filters +++ b/bounce_cpp/bounce_cpp.vcxproj.filters @@ -18,11 +18,23 @@ Source Files + + Source Files + + + Source Files + Header Files + + Header Files + + + Header Files + diff --git a/bounce_cpp/main.cpp b/bounce_cpp/main.cpp index 20b13e6..039935c 100644 --- a/bounce_cpp/main.cpp +++ b/bounce_cpp/main.cpp @@ -30,9 +30,6 @@ rattatwinko - 04/05/26 #include "sound_handler.h" #include "physics.h" -#pragma comment(lib, "gdiplus.lib") -#pragma comment(lib, "winmm.lib") - using namespace Gdiplus; // consts @@ -131,10 +128,6 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara g_imageScream = LoadImageFromResource(hInst, IDB_BITMAP1, L"JPG"); if (g_image) { - /* - g_winW = static_cast(g_image->GetWidth()); - g_winH = static_cast(g_image->GetHeight()); - */ g_winW = 480; g_winH = 480; SetWindowPos(hwnd, nullptr, 0, 0, g_winW, g_winH, diff --git a/bounce_cpp.slnx b/hyrax.slnx similarity index 100% rename from bounce_cpp.slnx rename to hyrax.slnx