std::string stlstring ="Hello world";// assuming your string is encoded as UTF-8, change the wxConv* parameter as neededwxString mystring(stlstring.c_str(), wxConvUTF8); Converting everything to and from wxString http://wiki.wxwidgets.org/Converting_everything_to_and_from_wxString ...
and when the GetCellRenderer() was called, the reference number of the renderer is increased, So the DecRef() was called explicitly. Such as call wxGridCellAttr *wxGrid::GetOrCreateCellAttr(int row, int col) const; Refer to wxGridCellWorker and wxGridCellRenderer (base class:...
(非原创,网络摘抄) 跨平台的C++ GUI工具库很多,可是应用广泛的也就那么几个,Qt.wxWidgets便是其中的翘楚这里把GTK+排除在外,以C实现面向对象,上手相当困难,而且Windows平台下执行相当慢且不稳定. Qt和wxWidgets各有各的优点,也各有各的缺点,各有各的适合应用点.工作环境和爱好限制,个人曾经分别使用过Qt和wxWidg...