Hi Garrett,

As you suggested I double checked to be sure that I am compiling with the 
correct library versions and everything checks out. Perhaps it's an MFC related 
project setting that changed in 2010? Do you have an MFC-OSG app compiled with 
VS2010 that works?

Err, no. Though I would doubt MS would do anything special to accomodate MFC in its compiler, they've done weirder things before.

Perhaps someone else on this list has used OSG and MFC together in VS 2010? In the past (VS 2005 and 2008) we didn't need to do anything special. You already mentioned the osgViewerMFC example has the same problem, that's good info, I and others can try that out soon and let you know what results we get (in my case I can probably try it tomorrow).

Have you tried to search MS-related sources (forums, MSDN, etc.) for info about this kind of issue? As you've confirmed non-MFC OSG apps work for you on VS 2010, it's probably something MFC-related as you suggest. Perhaps some flags need to be added when building the OSG libraries to make the results compatible with VS 2010's MFC? If that's the case, you can add specific flags like that to the CMAKE_C_FLAGS, CMAKE_CXX_FLAGS, CMAKE_EXE_LINKER_FLAGS, etc. settings that you will see by showing the advanced settings in CMake.

Hope this helps, and let us know what you find out,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to