Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,275 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// File: Host.cpp
|
||||
//
|
||||
// Desc: This simple program builds upon the EnumSP.cpp tutorial and adds
|
||||
// creation of an Address Object and hosting a session
|
||||
//
|
||||
// Copyright (c) 2000-2001 Microsoft Corp. All rights reserved.
|
||||
//-----------------------------------------------------------------------------
|
||||
#define INITGUID
|
||||
#define _WIN32_DCOM
|
||||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
#include <dplay8.h>
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Global variables
|
||||
//-----------------------------------------------------------------------------
|
||||
IDirectPlay8Peer* g_pDP = NULL;
|
||||
IDirectPlay8Address* g_pDeviceAddress = NULL;
|
||||
|
||||
// This GUID allows DirectPlay to find other instances of the same game on
|
||||
// the network. So it must be unique for every game, and the same for
|
||||
// every instance of that game. // {5e4ab2ee-6a50-4614-807e-c632807b5eb1}
|
||||
GUID g_guidApp = {0x5e4ab2ee, 0x6a50, 0x4614, {0x80, 0x7e, 0xc6, 0x32, 0x80, 0x7b, 0x5e, 0xb1}};
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Function-prototypes
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT WINAPI DirectPlayMessageHandler(PVOID pvUserContext, DWORD dwMessageId, PVOID pMsgBuffer);
|
||||
BOOL IsServiceProviderValid(const GUID* pGuidSP);
|
||||
HRESULT InitDirectPlay();
|
||||
HRESULT CreateDeviceAddress();
|
||||
HRESULT HostSession();
|
||||
void CleanupDirectPlay();
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Miscellaneous helper functions
|
||||
//-----------------------------------------------------------------------------
|
||||
#define SAFE_DELETE(p) {if(p) {delete (p); (p)=NULL;}}
|
||||
#define SAFE_DELETE_ARRAY(p) {if(p) {delete[] (p); (p)=NULL;}}
|
||||
#define SAFE_RELEASE(p) {if(p) {(p)->Release(); (p)=NULL;}}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: main()
|
||||
// Desc: Entry point for the application.
|
||||
//-----------------------------------------------------------------------------
|
||||
int main(int argc, char* argv[], char* envp[])
|
||||
{
|
||||
HRESULT hr;
|
||||
|
||||
// Init COM so we can use CoCreateInstance
|
||||
CoInitializeEx(NULL, COINIT_MULTITHREADED);
|
||||
|
||||
// Init the DirectPlay system
|
||||
if( FAILED( hr = InitDirectPlay() ) )
|
||||
{
|
||||
printf("Failed Initializing DirectPlay: 0x%X\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
if( FAILED( hr = CreateDeviceAddress() ) )
|
||||
{
|
||||
printf("Failed CreatingDeviceAddress: 0x%X\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
if( FAILED( hr = HostSession() ) )
|
||||
{
|
||||
printf("Failed Hosting: 0x%X\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
// Wait for user action
|
||||
printf("Press a key to exit\n");
|
||||
_getch();
|
||||
|
||||
LCleanup:
|
||||
CleanupDirectPlay();
|
||||
|
||||
// Cleanup COM
|
||||
CoUninitialize();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: InitDirectPlay()
|
||||
// Desc: Initialize DirectPlay
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT InitDirectPlay()
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
// Create the IDirectPlay8Peer Object
|
||||
if( FAILED( hr = CoCreateInstance( CLSID_DirectPlay8Peer, NULL,
|
||||
CLSCTX_INPROC_SERVER,
|
||||
IID_IDirectPlay8Peer,
|
||||
(LPVOID*) &g_pDP ) ) )
|
||||
{
|
||||
printf("Failed Creating the IDirectPlay8Peer Object: 0x%X\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
// Init DirectPlay
|
||||
if( FAILED( hr = g_pDP->Initialize(NULL, DirectPlayMessageHandler, 0 ) ) )
|
||||
{
|
||||
printf("Failed Initializing DirectPlay: 0x%X\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
// Ensure that TCP/IP is a valid Service Provider
|
||||
if( FALSE == IsServiceProviderValid(&CLSID_DP8SP_TCPIP ) )
|
||||
{
|
||||
hr = E_FAIL;
|
||||
printf("Failed validating CLSID_DP8SP_TCPIP");
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
LCleanup:
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: DirectPlayMessageHandler
|
||||
// Desc: Handler for DirectPlay messages. This tutorial doesn't repond to any
|
||||
// DirectPlay messages
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT WINAPI DirectPlayMessageHandler(PVOID pvUserContext, DWORD dwMessageId, PVOID pMsgBuffer)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: IsServiceProviderValid()
|
||||
// Desc: Return TRUE if the service provider is valid
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL IsServiceProviderValid(const GUID* pGuidSP)
|
||||
{
|
||||
HRESULT hr;
|
||||
DPN_SERVICE_PROVIDER_INFO* pdnSPInfo = NULL;
|
||||
DWORD dwItems = 0;
|
||||
DWORD dwSize = 0;
|
||||
|
||||
hr = g_pDP->EnumServiceProviders( &CLSID_DP8SP_TCPIP, NULL, NULL,
|
||||
&dwSize, &dwItems, 0 );
|
||||
|
||||
if( hr != DPNERR_BUFFERTOOSMALL )
|
||||
{
|
||||
printf("Failed Enumerating Service Providers: 0x%x\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
pdnSPInfo = (DPN_SERVICE_PROVIDER_INFO*) new BYTE[dwSize];
|
||||
|
||||
if( FAILED( hr = g_pDP->EnumServiceProviders( &CLSID_DP8SP_TCPIP, NULL, pdnSPInfo,
|
||||
&dwSize, &dwItems, 0 ) ) )
|
||||
{
|
||||
printf("Failed Enumerating Service Providers: 0x%x\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
// There are no items returned so the requested SP is not available
|
||||
if( dwItems == 0)
|
||||
{
|
||||
hr = E_FAIL;
|
||||
}
|
||||
|
||||
LCleanup:
|
||||
SAFE_DELETE_ARRAY(pdnSPInfo);
|
||||
|
||||
if( SUCCEEDED(hr) )
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: CreateDeviceAddress()
|
||||
// Desc: Creates a device address
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT CreateDeviceAddress()
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
// Create our IDirectPlay8Address Device Address
|
||||
if( FAILED( hr = CoCreateInstance( CLSID_DirectPlay8Address, NULL,
|
||||
CLSCTX_INPROC_SERVER,
|
||||
IID_IDirectPlay8Address,
|
||||
(LPVOID*) &g_pDeviceAddress ) ) )
|
||||
{
|
||||
printf("Failed Creating the IDirectPlay8Address Object: 0x%X\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
// Set the SP for our Device Address
|
||||
if( FAILED( hr = g_pDeviceAddress->SetSP(&CLSID_DP8SP_TCPIP ) ) )
|
||||
{
|
||||
printf("Failed Setting the Service Provider: 0x%X\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
|
||||
LCleanup:
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: HostSession()
|
||||
// Desc: Host a DirectPlay session
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT HostSession()
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
DPN_APPLICATION_DESC dpAppDesc;
|
||||
|
||||
// Now set up the Application Description
|
||||
ZeroMemory(&dpAppDesc, sizeof(DPN_APPLICATION_DESC));
|
||||
dpAppDesc.dwSize = sizeof(DPN_APPLICATION_DESC);
|
||||
dpAppDesc.guidApplication = g_guidApp;
|
||||
|
||||
// We are now ready to host the app
|
||||
if( FAILED( hr = g_pDP->Host( &dpAppDesc, // AppDesc
|
||||
&g_pDeviceAddress, 1, // Device Address
|
||||
NULL, NULL, // Reserved
|
||||
NULL, // Player Context
|
||||
0 ) ) ) // dwFlags
|
||||
{
|
||||
printf("Failed Hosting: 0x%X\n", hr);
|
||||
goto LCleanup;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Currently Hosting...\n");
|
||||
}
|
||||
|
||||
LCleanup:
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: CleanupDirectPlay()
|
||||
// Desc: Cleanup DirectPlay
|
||||
//-----------------------------------------------------------------------------
|
||||
void CleanupDirectPlay()
|
||||
{
|
||||
// Cleanup DirectPlay
|
||||
if( g_pDP)
|
||||
g_pDP->Close(0);
|
||||
|
||||
SAFE_RELEASE(g_pDeviceAddress);
|
||||
SAFE_RELEASE(g_pDP);
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
# Microsoft Developer Studio Project File - Name="Host" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||
|
||||
CFG=Host - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Host.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Host.mak" CFG="Host - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "Host - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "Host - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "Host - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_CONSOLE" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /D "NDEBUG" /D "_MBCS" /D "_WINDOWS" /D "WIN32" /D "_CONSOLE" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 dplay.lib dxguid.lib ole32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /stack:0x10000,0x10000
|
||||
|
||||
!ELSEIF "$(CFG)" == "Host - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /D "_CONSOLE" /D "NDEBUG" /D "_MBCS" /D "_WINDOWS" /D "WIN32" /FD /c
|
||||
# SUBTRACT CPP /YX
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 ole32.lib uuid.lib oleaut32.lib odbc32.lib odbccp32.lib dplay.lib dxguid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /stack:0x10000,0x10000
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "Host - Win32 Release"
|
||||
# Name "Host - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Host.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\readme.txt
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "Host"=.\Host.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
# Microsoft Developer Studio Generated NMAKE File, Based on Host.dsp
|
||||
!IF "$(CFG)" == ""
|
||||
CFG=Host - Win32 Debug
|
||||
!MESSAGE No configuration specified. Defaulting to Host - Win32 Debug.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(CFG)" != "Host - Win32 Release" && "$(CFG)" != "Host - Win32 Debug"
|
||||
!MESSAGE Invalid configuration "$(CFG)" specified.
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Host.mak" CFG="Host - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "Host - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "Host - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
!ERROR An invalid configuration is specified.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(OS)" == "Windows_NT"
|
||||
NULL=
|
||||
!ELSE
|
||||
NULL=nul
|
||||
!ENDIF
|
||||
|
||||
!IF "$(CFG)" == "Host - Win32 Release"
|
||||
|
||||
OUTDIR=.\Release
|
||||
INTDIR=.\Release
|
||||
# Begin Custom Macros
|
||||
OutDir=.\Release
|
||||
# End Custom Macros
|
||||
|
||||
ALL : "$(OUTDIR)\Host.exe"
|
||||
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\Host.obj"
|
||||
-@erase "$(INTDIR)\vc60.idb"
|
||||
-@erase "$(OUTDIR)\Host.exe"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
CPP=cl.exe
|
||||
CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "NDEBUG" /D "_MBCS" /D "_WINDOWS" /D "WIN32" /D "_CONSOLE" /Fp"$(INTDIR)\Host.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||
|
||||
.c{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.c{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
MTL=midl.exe
|
||||
MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
RSC=rc.exe
|
||||
BSC32=bscmake.exe
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)\Host.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=dplay.lib dxguid.lib ole32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\Host.pdb" /machine:I386 /out:"$(OUTDIR)\Host.exe" /stack:0x10000,0x10000
|
||||
LINK32_OBJS= \
|
||||
"$(INTDIR)\Host.obj"
|
||||
|
||||
"$(OUTDIR)\Host.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||
$(LINK32) @<<
|
||||
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||
<<
|
||||
|
||||
!ELSEIF "$(CFG)" == "Host - Win32 Debug"
|
||||
|
||||
OUTDIR=.\Debug
|
||||
INTDIR=.\Debug
|
||||
# Begin Custom Macros
|
||||
OutDir=.\Debug
|
||||
# End Custom Macros
|
||||
|
||||
ALL : "$(OUTDIR)\Host.exe"
|
||||
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\Host.obj"
|
||||
-@erase "$(INTDIR)\vc60.idb"
|
||||
-@erase "$(INTDIR)\vc60.pdb"
|
||||
-@erase "$(OUTDIR)\Host.exe"
|
||||
-@erase "$(OUTDIR)\Host.ilk"
|
||||
-@erase "$(OUTDIR)\Host.pdb"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
CPP=cl.exe
|
||||
CPP_PROJ=/nologo /MLd /W3 /Gm /GX /Zi /Od /D "_CONSOLE" /D "NDEBUG" /D "_MBCS" /D "_WINDOWS" /D "WIN32" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||
|
||||
.c{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.c{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
MTL=midl.exe
|
||||
MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
RSC=rc.exe
|
||||
BSC32=bscmake.exe
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)\Host.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=ole32.lib uuid.lib oleaut32.lib odbc32.lib odbccp32.lib dplay.lib dxguid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\Host.pdb" /debug /machine:I386 /out:"$(OUTDIR)\Host.exe" /pdbtype:sept /stack:0x10000,0x10000
|
||||
LINK32_OBJS= \
|
||||
"$(INTDIR)\Host.obj"
|
||||
|
||||
"$(OUTDIR)\Host.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||
$(LINK32) @<<
|
||||
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||
<<
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
||||
!IF "$(NO_EXTERNAL_DEPS)" != "1"
|
||||
!IF EXISTS("Host.dep")
|
||||
!INCLUDE "Host.dep"
|
||||
!ELSE
|
||||
!MESSAGE Warning: cannot find "Host.dep"
|
||||
!ENDIF
|
||||
!ENDIF
|
||||
|
||||
|
||||
!IF "$(CFG)" == "Host - Win32 Release" || "$(CFG)" == "Host - Win32 Debug"
|
||||
SOURCE=.\Host.cpp
|
||||
|
||||
"$(INTDIR)\Host.obj" : $(SOURCE) "$(INTDIR)"
|
||||
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: Host DirectPlay Tutorial
|
||||
//
|
||||
// Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
Description
|
||||
===========
|
||||
The Host tutorial is the 2nd tutorial for DirectPlay. It builds upon the last
|
||||
tutorial and adds creation of an Address Object and hosting a session.
|
||||
|
||||
Path
|
||||
====
|
||||
Source: DXSDK\Samples\Multimedia\DirectPlay\Tutorials\Tut02_Host
|
||||
Reference in New Issue
Block a user