Click here to Skip to main content
15,886,806 members
Articles / Desktop Programming / MFC

Network Renju Game

Rate me:
Please Sign up or sign in to vote.
3.00/5 (2 votes)
1 Jul 20032 min read 73.9K   3.9K   41  
This is a Renju game with network support.
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__6B7F3765_40C0_4996_8CAB_095277A15579__INCLUDED_)
#define AFX_STDAFX_H__6B7F3765_40C0_4996_8CAB_095277A15579__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#define DIVISIONS	15
#define CELLSIZE	40
#define PORT_NUM	762

#define DISCONNECT 99
#define DECLINE 100
#define ACCEPT	101

#define COORDS	102
#define UWIN	110
#define IWIN	120 // black win
#define ULOSE	130	// white win
#define EVEN	140
#define SURRENDER	150
#define NEWGAME		160
#define NONEWGAME	170

#define WM_USER_DECLINED (WM_USER + 100)
#define WM_USER_NEWGAME	(WM_USER + 101)

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <afxsock.h>		// MFC socket extensions

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__6B7F3765_40C0_4996_8CAB_095277A15579__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Hey you,
Out there in the cold,
Getting lonely, getting old,
Can you feel me?
Hey you,
Standing in the aisle,
With itchy feet and fading smile,
Can you feel me?
Hey you,
Don't help them to bury the light.
Don't give in without a fight.

Comments and Discussions