我使用了这个函数!
LPDIRECTDRAW lpdd=NULL;//storage for IDirectDraw DirectDrawCreate(NULL,&lpdd,NULL);
这个函数需要的头文件和库我都链接了,但是报错如下!
D:\program\DDraw\DDrawDlg.cpp(142) : error C2065: 'LPDIRECTDRAW' : undeclared identifier
D:\program\DDraw\DDrawDlg.cpp(142) : error C2146: syntax error : missing ';' before identifier 'lpdd'
很显然是有什么文件没包含,或者是库文件没有链接!
请高手指点!
LPDIRECTDRAW lpdd=NULL;//storage for IDirectDraw DirectDrawCreate(NULL,&lpdd,NULL);
这个函数需要的头文件和库我都链接了,但是报错如下!
D:\program\DDraw\DDrawDlg.cpp(142) : error C2065: 'LPDIRECTDRAW' : undeclared identifier
D:\program\DDraw\DDrawDlg.cpp(142) : error C2146: syntax error : missing ';' before identifier 'lpdd'
很显然是有什么文件没包含,或者是库文件没有链接!
请高手指点!
#include "DDraw.h"
#include "DDrawDlg.h"
#include "ddraw.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
包含了的!但是还是报错!
初始化com组件