⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p7626.c

📁 linux下的gcc编译器
💻 C
字号:
// Build don't link:// prms-id: 7626int fail;typedef unsigned int UINT;class CObject{};class CCmdTarget : public CObject {};typedef void (CCmdTarget::*AFX_PMSG)(void);struct AFX_MSGMAP_ENTRY {  AFX_PMSG pfn;     };class CWnd : public CCmdTarget {public:  void OnMyMsg() { fail  = 1; }		// If this one is called, something is wrong.  static AFX_MSGMAP_ENTRY _messageEntries[];};typedef void (CWnd::*AFX_PMSGW)(void);class CDialog : public CWnd{public:  void OnMyMsg() { }  static AFX_MSGMAP_ENTRY _messageEntries[];};AFX_MSGMAP_ENTRY  CDialog ::_messageEntries[] = {   { (AFX_PMSG)(AFX_PMSGW)(void (CWnd::*)())&CDialog::OnMyMsg },   { (AFX_PMSG)0 }}; int main() {  CDialog d;  (d.*((CDialog::_messageEntries)[0]).pfn)();	// This should call CDialog::OnMyMsg  return fail;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -