谁能告诉我这条出错信息该怎么办?
yxin 2001-11-18 07:30:39 :\Programs\DDrawTest\DDrawTestDlg.cpp(123) : error C2664: 'DirectDrawEnumerateA' : cannot convert parameter 1 from 'int (struct _GUID *,char *,char *,void *)' to 'int (__stdcall *)(struct _GUID *,char *,char *,void *)'
None of the functions with this name in scope match the target type
其中我用的是:
if( FAILED(DirectDrawEnumerate(EnumCallBack,(LPVOID)pCombo)) ){
函数的定义:
BOOL WINAPI CDDrawTestDlg::EnumCallBack(GUID FAR *lpGUID,
LPSTR lpDriverDescription,
LPSTR lpDriverName,
LPVOID lpContext)
{
static count=0;
CComboBox *pCombo=(CComboBox*) lpContext;
CString TemString=lpDriverName;
TemString+=" ";
TemString+=lpDriverDescription;
pCombo->AddString(TemString);
pGUID[count++]=lpGUID;
return DDENUMRET_OK;
}