求教函数地址做参数的用法
class CTCSIterminatorDlg : public CDialog
{
VOID CreateTempFile(CStdioFile *FileName, CString stStr, CString edStr);
VOID MakeTime(CTime* time, CString stTime);
LONG BinarySearch(long position, time_t bin_time, CStdioFile* targfile,
BOOL mode);
LONG GetUpperLinePosition(CStdioFile* targfile);
LONG GetNextLinePosition(CStdioFile* targfile);--->需要传递其地址
VOID CheckUpperLine(CStdioFile* targfile);
BOOL IfGetTargetTime(CStdioFile* targetfile, time_t
targettime, char* buffer, CTime* rectime,
long* checkpoint, long* position,
LONG (*p)(CStdioFile* pfile));-->函数原型
......
};
if(IfGetTargetTime(targfile, bin_time, linebuf, &temptime, &checkpoint, &position, GetNextLinePosition)--->实际调用
编译后错误信息 无法将函数IfGetTargetTime的第七个参数由long (class CStdioFile *)转换为long (__cdecl *)(class CStdioFile *)
不知道错在哪里了,请赐教.