Monthly Archives: June 2009

Build wxWidgets 2.8.10 with OpenGL via VC++ 2008

modify wxWidgets-2.8.10\include\wx\setup_inc.h and wxWidgets-2.8.10\include\wx\msw\setup.h to enable wxUSE_GLCANVAS       #define wxUSE_GLCANVAS       1 start VC++ command window and run following command: D:\opensource\wxWidgets-2.8.10\build\msw>nmake -f MONOLITHIC=0 SHARED=0 BUILD=release USE_OPENGL=1 USE_ODBC=1 UNICODE=1 D:\opensource\wxWidgets-2.8.10\build\msw>nmake -f MONOLITHIC=0 SHARED=0 BUILD=debug USE_OPENGL=1 USE_ODBC=1 UNICODE=1

Posted in GUI | Leave a comment

boost::multi_index_container and boost::shared_ptr

It is a surprise that google only returns 8 results with the following search “multi_index ordered_unique shared_ptr custom key extractor”. The following is my simple test. // multicontainertest.cpp : store shared_ptr in multi_index_container.//#include <boost/shared_ptr.hpp>#pragma warning(push)#pragma warning(disable: 4819)#include <boost/multi_index_container.hpp>#include <boost/multi_index/ordered_index.hpp>#include <boost/multi_index/identity.hpp>#include … Continue reading

Posted in CPP | Leave a comment