关于LPDIRECTDRAW7结构的问题
小弟最近照书上编了一段代码,可编译时老是有错误,各位大哥来帮帮忙啊!!!! 代码如下:
#include<windows.h>
#include<ddraw.h>
#pragma comment(lib,"dxguid.lib")
#pragma comment(lib,"ddraw.lib")
class CDDraw
{
protected:
BOOL bFullScr;
DWORD ScreenW;
DWORD ScreenH;
DWORD ScreenC;
HWND hWnd;
LPDIRECTDRAW7 lpDD;
LPDIRECTDRAWSURFACE7 lpDDSPrimary;
LPDIRECTDRAWSURFACE7 lpDDSBack;
…………
下面是错误,看不懂啊,
syntax error : missing ';' before identifier 'lpDD'
error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
error C2501: 'lpDD' : missing storage-class or type specifiers
error C2146: syntax error : missing ';' before identifier 'lpDDSPrimary'
error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
…………