stdafx.h

来自「用vc++结合directinput编程序实现键盘时间捕捉」· C头文件 代码 · 共 44 行

H
44
字号
/**  
*
*
*   @file   stdafx.h
*
*
*/

#ifndef __STDAFX_H__
#define __STDAFX_H__

/** 包含常用的头文件 */
#include <windows.h>
#include <stdio.h>
#include <math.h>                            
#include <time.h>

/** 包含gl头文件 */
#include <gl\gl.h>				 
#include <gl\glu.h>
#include <gl\glaux.h>
#include <gl\glext.h>

/** 包含DirectInput头文件 */
#define DIRECTINPUT_VERSION  0x0800
#include <dinput.h>

/** 包含OpenGL链接库文件 */
#pragma comment(lib, "opengl32.lib")		
#pragma comment(lib, "glu32.lib")							
#pragma comment(lib, "glaux.lib")	

/** 包含DirectInput链接库文件 */ 
#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "dinput8.lib")

/**< 禁止编译器出现类型转换的警告 */
#pragma warning(disable: 4311)                                 
#pragma warning(disable: 4312)
#pragma warning(disable: 4244)
#pragma warning(disable: 4018)
#pragma warning(disable: 4267)

#endif

⌨️ 快捷键说明

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