请教vc下opengl编程配置时
书上说要把下面这段代码加到stdafx.h里 ,
//OpenGL Headers
#include <gl\gl.h> //OpenGL Main Library Header
#include <gl\glu.h> //OpenGL Utility Library Header
#include <gl\glaux.h> //OpenGL Auxiliary Library Header
#include <gl\glut.h> //OpenGL GLUT Library Header
但我插了几次都没插对,请教一下因该插在stdafx.h的哪里?下面是stdafx.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__576DF056_E403_484B_8942_10CB4DBC1561__INCLUDED_)
#define AFX_STDAFX_H__576DF056_E403_484B_8942_10CB4DBC1561__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
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_STDAFX_H__576DF056_E403_484B_8942_10CB4DBC1561__INCLUDED_)
书上说要把下面这段代码加到stdafx.h里 ,
//OpenGL Headers
#include <gl\gl.h> //OpenGL Main Library Header
#include <gl\glu.h> //OpenGL Utility Library Header
#include <gl\glaux.h> //OpenGL Auxiliary Library Header
#include <gl\glut.h> //OpenGL GLUT Library Header
但我插了几次都没插对,请教一下因该插在stdafx.h的哪里?下面是stdafx.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__576DF056_E403_484B_8942_10CB4DBC1561__INCLUDED_)
#define AFX_STDAFX_H__576DF056_E403_484B_8942_10CB4DBC1561__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
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_STDAFX_H__576DF056_E403_484B_8942_10CB4DBC1561__INCLUDED_)
解决方案 »
- UDP接收端CPU过高
- 高手请教一下令人讨厌的RichEdit问题
- 【请教】VC2005 release下如何断点调试?
- 寻找深圳C++程序员
- 请问如何删除注册表里的项?
- 如何在一个win2k server的服务器上创建一个MSMQ队列!
- 谁能讲讲SOCKET的本质,即SOCKET在系统内部到底代表什么?怎么样得到一个进程打开的所有的SOCKET?
- 新手求教,怎样在DLL中实现多线程
- 大家快帮帮忙吧!!!我的聊天室程序出问题了????
- 如何返回自己定义的数据类型(Activex)
- 关于COM对象的创建与销毁??
- 以前当hub使的交换机 现在要配个ip(本人要用snmp编程查询),有show ip interface信息,各位帮看一下(up有分)
#define AFX_STDAFX_H__576DF056_E403_484B_8942_10CB4DBC1561__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 <gl\gl.h> //OpenGL Main Library Header
#include <gl\glu.h> //OpenGL Utility Library Header
#include <gl\glaux.h> //OpenGL Auxiliary Library Header
// #include <gl\glut.h> //OpenGL GLUT Library Header这个库需要从网络上查找下载//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_STDAFX_H__576DF056_E403_484B_8942_10CB4DBC1561__INCLUDED_)