remove pragma linker comment (in main.cpp), add to linker inputfor solution. rename slnx file to hyrax

This commit is contained in:
2026-05-07 08:49:42 +02:00
parent 4951a79124
commit fc4dfd6f43
4 changed files with 16 additions and 9 deletions
+4 -2
View File
@@ -23,7 +23,8 @@
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{61c6f079-9b1c-4d66-b9c7-4646f87181a6}</ProjectGuid>
<RootNamespace>bouncecpp</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.26100.0</WindowsTargetPlatformVersion>
<ProjectName>hyrax</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
@@ -48,7 +49,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v145</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
@@ -125,6 +126,7 @@
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>gdiplus.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
+12
View File
@@ -18,11 +18,23 @@
<ClCompile Include="main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="physics.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="sound_handler.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="physics.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="sound_handler.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Resource.rc">
-7
View File
@@ -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<int>(g_image->GetWidth());
g_winH = static_cast<int>(g_image->GetHeight());
*/
g_winW = 480;
g_winH = 480;
SetWindowPos(hwnd, nullptr, 0, 0, g_winW, g_winH,
View File