类的头文件定义:
BOOL (*Fun[4])(DebugInfoHead* head, LPABBREVITEM item, LPBYTE& lpbtData);在函数中赋值:
Fun[0] = DoUnPrecess;编译报错: : cannot convert from 'int (__thiscall CArmELFPreConvert::*)(struct DebugInfoHead *,struct AbbrevItem *,unsigned char *& )' to 'int (__cdecl *)(struct DebugInfoHead *,struct Abbrev
Item *,unsigned char *& )'
BOOL (*Fun[4])(DebugInfoHead* head, LPABBREVITEM item, LPBYTE& lpbtData);在函数中赋值:
Fun[0] = DoUnPrecess;编译报错: : cannot convert from 'int (__thiscall CArmELFPreConvert::*)(struct DebugInfoHead *,struct AbbrevItem *,unsigned char *& )' to 'int (__cdecl *)(struct DebugInfoHead *,struct Abbrev
Item *,unsigned char *& )'
解决方案 »
- 怎样用VB程序调用带参数的VC程序的DLL函数?
- 老大们帮个忙,我都快急疯了!!!!我自己写的lib有ATL和MFC支持,然后再写一个mfc程序调用此库,就有问题了。。。
- 注册表高手帮帮我:我的桌面不见了
- 发送ICMP包探测远端主机的当前状态??
- 多語言支持程序的實現?
- 在CDocument里面有m_viewList,请问应该如何在xxxdoc.cpp里面使用该m_viewList来访问某个view?
- 请问在哪可以下载中文的msdn library?
- 同一个文件被编译了两次
- 多Frame CWebbrowser 获取网页内容
- CMFCMenuButton的菜单如何获取某个菜单项的check状态
- release中出现的unresolved external symbol
- 一道图像旋转题目
class CFunction
{
public:
CFunction();
virtual ~CFunction();public:
void Add(int &val);
void Sub(int &val);
void Multiple(int &val);
void Divide(int &val);protected:
int m_nFactor;
};typedef void (CFunction::*pFunc)(int&);
// 使用:
CFunction func;
pFunc pClsFunc[] = {func.Add, func.Sub, func.Mutiple, func.Divide};
int nVal = 10;
pClsFunc[0](nVal);