字体枚举函数和它的回调函数有问题?
::EnumFontFamiliesEx((HDC)dc,&lf,(FONTENUMPROC)EnumFontFamProc,(LPARAM)this,0L);
回调函数是: int CALLBACK CFontViewerDlg::EnumFontFamProc(LPENUMLOGFONT lpelf, LPNEWTEXTMETRIC lpntm, DWORD nFontType, long lParam)
我用上面的函数来枚举系统中所有的字体,但是,出现问题,问题描述如下:
error C2440: 'type cast' : cannot convert from '' to 'int (__stdcall *)(const struct tagLOGFONTA *,const struct tagTEXTMETRICA *,unsigned long)'
None of the functions with this name in scope match the target type
好象是类型转换错误,但是我现在找不到这个错误是错在哪儿?
EMail: daixi1703163@163.com Thanks very much!!!!!!