code: std::map amap; char str[]; amap.find(str); // compiler point error to here error: error C2451: conditional expression of type 'class std::_Tree,struct std::map,class std::al locator >::_Kfn,struct std::less,class std::allocator >::iterator' is illegal No user-defined-conversion operator available that can perform this co nversion, or the operator cannot be called i don't know how to cope with it. please help me! thanks. love program
muddog
Posts
-
a error i can't understand -
how to get a menu wnd handle?when a menu is popup,how i could get it's HWND? love program
-
about CListCtrlwhen i want to insert 5000-7000 items to a listctrl. it's inserting process is very slow. how to deal with that? 3x. and anyother Q: when i use CListBox to SetCurSel(5000),or lager number it will also slow. how to do? love program
-
about WM_NOTIFY for CTreeCtrli see , as i digesting into the document. lParam is not only a pointer to NMHDR even more of that. we could change the type of it to proper struct pointer such as LPNMTREEVIEW. thank you. love program
-
about WM_NOTIFY for CTreeCtrlfor my project , i have a CView contain a CTreeCtrl member. i want to cope with the tree notify message in the view. for instance : msg: TVN_ITEMEXPANDED CView::OnNotify(wParam , lParam , lpResult){ } as far as i know wParam as idCtrl, lParam as LPNMHDR strcut point. but msdn says TVN_ITEMEXPANDED pnmtv = (LPNMTREEVIEW) lParam . what really the lParam refer to?? help me. love program