将拾取的代码直接复制到MFCosg的cpp文件中,并添加代码如下
void MFCosg::InitCameraConfig(void)
{
/// Local Variable to hold window size data
RECT rect;
/// Create the viewer for this window
mViewer = new osgViewer::Viewer();
/// Add a Stats Handler to the viewer
// mViewer->addEventHandler(new osgViewer::StatsHandler);
mViewer->addEventHandler(new PickHandler);。。。。。。。。
}
出现图片所示错误