在mfc中toolbar从frame里分离移动会给出null指针错误,这时候不妨试试下面的方法。
"0xC015000F: The activation context being deactivated is not the most recently activated one.
XXXApp::InitInstance()函数里CWinAppEx::InitInstance(); 下面添加如下代码
afxAmbientActCtx = FALSE;
困扰我3天的error总算告以锻炼了。。。