Upgraded to Platform Toolset v141

This commit is contained in:
Robert Vokac 2025-02-22 17:00:28 +01:00
parent d1b807ea50
commit e22c46992f
22 changed files with 78 additions and 12 deletions

View File

@ -23,14 +23,13 @@
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{e424a3cb-c8b8-447c-be63-41a57e65b449}</ProjectGuid>
<RootNamespace>SpeedyEggbert2Source</RootNamespace>
<WindowsTargetPlatformVersion>
</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">

View File

@ -3,6 +3,8 @@
#define WIN32_LEAN_AND_MEAN
typedef struct IUnknown IUnknown;
#include <windows.h>
#include <windowsx.h>
#include <WTypes.h>

View File

@ -6,6 +6,8 @@
//#include <stdio.h>
//#include <ddraw.h>
typedef struct IUnknown IUnknown;
#ifndef POINT
#include <windows.h>
#endif

View File

@ -6,6 +6,9 @@
* Content: Routines for loading bitmap and palettes from resources
*
***************************************************************************/
typedef struct IUnknown IUnknown;
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View File

@ -1,6 +1,9 @@
// DecBlock.cpp
//
typedef struct IUnknown IUnknown;
#include "def.h"
#include "decor.h"
#include "misc.h"

View File

@ -1,6 +1,8 @@
// DecBlupi.cpp
//
typedef struct IUnknown IUnknown;
#include "misc.h"
#include "decor.h"
#include "text.h" // debug

View File

@ -1,6 +1,9 @@
// DecDesign.cpp
//
typedef struct IUnknown IUnknown;
#include "def.h"
#include "decor.h"
#include "misc.h"

View File

@ -1,6 +1,9 @@
// DecIO.cpp
//
typedef struct IUnknown IUnknown;
#include "def.h"
#include "decor.h"
#include "misc.h"

View File

@ -1,6 +1,9 @@
// DecMove.cpp
//
typedef struct IUnknown IUnknown;
#include "def.h"
#include "decor.h"
#include "misc.h"

View File

@ -1,6 +1,9 @@
// DecNet.cpp
//
typedef struct IUnknown IUnknown;
#include "def.h"
#include "decor.h"
#include "misc.h"

View File

@ -1,6 +1,9 @@
// Decor.cpp
//
typedef struct IUnknown IUnknown;
//#include <windows.h>
//#include <stdlib.h>
//#include <stdio.h>

View File

@ -1363,32 +1363,44 @@ POINT operator/(POINT p, const int& a)
POINT& operator+=(POINT& p, const POINT& a)
{
return POINT( p.x += a.x, p.y += a.y );
p.x += a.x;
p.y += a.y;
return p;
}
POINT& operator-=(POINT& p, const POINT& a)
{
return POINT( p.x -= a.x, p.y -= a.y );
p.x -= a.x;
p.y -= a.y;
return p;
}
POINT& operator*=(POINT& p, const POINT& a)
{
return POINT( p.x *= a.x, p.y *= a.y );
p.x *= a.x;
p.y *= a.y;
return p;
}
POINT& operator/=(POINT& p, const POINT& a)
{
return POINT( p.x /= a.x, p.y /= a.y );
p.x /= a.x;
p.y /= a.y;
return p;
}
POINT& operator*=(POINT& p, const int& a)
{
return POINT( p.x *= a, p.y *= a );
p.x *= a;
p.y *= a;
return p;
}
POINT& operator/=(POINT& p, const int& a)
{
return POINT( p.x /= a, p.y /= a );
p.x /= a;
p.y /= a;
return p;
}
bool operator!=(POINT a, const POINT& b)

View File

@ -1,6 +1,9 @@
// Event.cpp
//
typedef struct IUnknown IUnknown;
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
@ -2423,7 +2426,7 @@ BOOL CEvent::DrawButtons()
if (m_phase == WM_PHASE_INIT)
{
DrawText(m_pPixmap, POINT( 414, 446 ), "Version 2.2", FONTLITTLE);
DrawText(m_pPixmap, POINT( 414, 446 ), const_cast<char*>("Version 2.2"), FONTLITTLE);
}
if (m_phase == WM_PHASE_GAMER)
@ -2909,7 +2912,7 @@ BOOL CEvent::DrawButtons()
// now that the decomp is looking convincingly like the retail game,
// we should clearly differentiate the two when sharing WIP screenshots/videos to reduce confusion.
{
DrawTextLeft(m_pPixmap, POINT(LXIMAGE - GetTextWidth("DECOMP -- " __DATE__), 0), "DECOMP -- " __DATE__, FONTGOLD);
DrawTextLeft(m_pPixmap, POINT(LXIMAGE - GetTextWidth(const_cast<char*>("DECOMP -- " __DATE__)), 0), const_cast<char*>("DECOMP -- " __DATE__), FONTGOLD);
}
///////

View File

@ -1,6 +1,9 @@
// Jauge.cpp
//
typedef struct IUnknown IUnknown;
#include <windows.h>
//#include <stdlib.h>
//#include <stdio.h>

View File

@ -1,6 +1,8 @@
// Menu.cpp
//
typedef struct IUnknown IUnknown;
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>

View File

@ -1,6 +1,9 @@
// Misc.cpp
//
typedef struct IUnknown IUnknown;
#include <dsound.h>
#include <ddraw.h>
#include <stdio.h>

View File

@ -1,6 +1,9 @@
// movie.cpp
//
typedef struct IUnknown IUnknown;
#include <windows.h>
#include <windowsx.h>
#include <commdlg.h>
@ -33,7 +36,7 @@ BOOL CMovie::initAVI()
// set up the open parameters
mciOpen.dwCallback = 0L;
mciOpen.wDeviceID = 0;
mciOpen.lpstrDeviceType = AVI_VIDEO;
mciOpen.lpstrDeviceType = const_cast<char*>(AVI_VIDEO);
mciOpen.lpstrElementName = NULL;
mciOpen.lpstrAlias = NULL;
mciOpen.dwStyle = 0;

View File

@ -1,6 +1,9 @@
// Network.cpp
//
typedef struct IUnknown IUnknown;
#include <stdio.h>
#include <windows.h>
#include "dplay.h"

View File

@ -1,6 +1,9 @@
// CPixmap.cpp
//
typedef struct IUnknown IUnknown;
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>

View File

@ -1,5 +1,8 @@
// sound.cpp
//
typedef struct IUnknown IUnknown;
#include "def.h"
#if _BASS && !_LEGACY

View File

@ -1,5 +1,8 @@
// Text.cpp
typedef struct IUnknown IUnknown;
//#include <windows.h>
//#include <stdlib.h>
//#include <stdio.h>

View File

@ -9,6 +9,8 @@
*
******************************************************************/
typedef struct IUnknown IUnknown;
#include <windows.h>
#include "wave.h"