On 8/2/07, ijustfu <[EMAIL PROTECTED]> wrote: > > Dear Robert. > I build a simple OSG program with visual studio2005.net. I use c++ > language , and select "window forms application", then get the following > codes: > > ... (snip) > After adding osgViewerd.lib and osgDBd.lib into project, compile it but fund > so many warnings and errors.
Binjli, I have integrated OSG (1.2) with managed C++ on quite a few projects, and it works well. You do not generally need to do anything special with regards to managed/unmanaged; calling into OSG falls into the "IJW" category (It Just Works, in Microsoft parlance). However in a WinForms app, you do need to integrate into the windows event loop architecture. You need to create a windows control and attach OSG's rendering surface to that control via the Windows HWND. Finally, you need to figure out how to call the osgViewer's main loop. But first things first, can you share some of the warnings and errors you are getting? -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

