⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdafx.h

📁 visual C++ mysql Connect Source
💻 H
字号:
// 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__A6212BD4_3C0E_4F85_9D91_0B4755546A1E__INCLUDED_)
#define AFX_STDAFX_H__A6212BD4_3C0E_4F85_9D91_0B4755546A1E__INCLUDED_

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

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

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#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 <winsock2.h>
// mysql捞 winsock阑 荤侩窍扁 锭巩俊 
// winsock header甫 怖 mysql.h困俊 inlcude秦具窃
#include <mysql.h>

// MYSQL 辑滚, 肺弊牢 沥焊
#define S_IP		"localhost"
#define S_ID		"root"	 // 包府磊 酒捞叼
#define S_PW		"sample" // 厚锅
#define S_PORT		3306
#define S_DB_NAME	"sample" // DB 捞抚

// 抛捞喉疙
#define TABLE "MEMBER"

// 鞘靛疙
#define ID "id"
#define PW "pw"
#define RECOMMENDER "re"
#define LEVEL "lv"
#define LAST_NUMBER "pn"

// 包府磊 酒捞叼
#define ADMINISTRATOR_ID "admin"
#define ADMINISTRATOR_PW "sample"

// MYSQL 按眉
extern MYSQL g_MySQL;

// 肺弊牢茄 拌沥狼 沥焊
struct MEMBER 
{
	char id[8];
	char pw[15];
	char re[8];
	BYTE lv;
	DWORD pn;
};

extern MEMBER g_MyInfo;

#pragma warning(disable: 4244)
#pragma warning(disable: 4018)
#pragma warning(disable: 4089)

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

#endif // !defined(AFX_STDAFX_H__A6212BD4_3C0E_4F85_9D91_0B4755546A1E__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -