Hi Ba, I don't think there's an incompatibility between the OSGViewer .NET Control example and OSG 2.8.1. For instance, I'm using it with OSG 2.8.0. The error could just be as simple that the OSG .dll's are not found when launching the app. * Did you compile the Debug version of OSG 2.8.1? (This would result in dll's with the -d suffix) * Are your environment vars set? Especially the OSG_BIN_PATH, add it to your PATH as well: http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecific s/VisualStudio * Did you debug run the application from within Visual Studio? You can also use depends.exe to check for missing dll's for your app. Hope this helps a bit, Ruben
________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of buidinhba5 Sent: woensdag 24 juni 2009 5:14 To: 'OpenSceneGraph Users' Subject: Re: [osg-users] Windows forms and c# Hi All I have download osgNETDemo.rar from http://www.april1985.com/2008/02/19/osgnetdemo/#more-322 Download link : http://www.april1985.com/?dl_id=7 I Use OSG 2.8.1 , and in VSProj , in project I add /Lib and /include of OSG 2.8.1 In VS 2005 In debug mode I compile success but when I run it get error ; The application failed to initialize properly (0xc015002). Click on OK to terminate the application I Think this version OSG is newer and not compatible in this Project , who can show me version Compatible or how to fix this problem . Thank ^^ I also read about FAQ: http://www.openscenegraph.org/projects/osg/wiki/Support/FAQ#HowdoIembeda nOSGviewerina.NETcontrol I make another project but when I only add library in stdafx.h not use it, it take many time to compile !^! I don't know why K //TODO: reference additional headers your program requires here #include <osg/Geode> #include <osg/Node> #include <osg/Geometry> #include <osg/MatrixTransform> #include <osg/PolygonMode> #include <osgViewer/Viewer> #include <osgGA/TrackballManipulator> #include <osgViewer/ViewerEventHandlers> #include <osgGA/StateSetManipulator> #include <osgDB/ReadFile> #include <osgDB/WriteFile> #include <Windows.h> #include <osgViewer\api\Win32\GraphicsWindowWin32> Thanks, Ba. From: [email protected] [mailto:[email protected]] On Behalf Of Smelik, R.M. (Ruben) Sent: Monday, June 22, 2009 1:34 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Windows forms and c# Dear Ba, Here's a working example of integrating OSG with C++/CLI and WinForms, which was made by Hesicong a year ago: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2 008-February/007430.html You can integrate this into a Visual Studio solution with a C# project. Kind regards, Ruben ________________________________ From: [email protected] on behalf of buidinhba5 Sent: Mon 6/22/2009 6:35 AM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] Windows forms and c# Hi Jason Beverage You can give more information use c++/cli to make a managed control ,some example or link to learn I have seach in Google and not see more about how to use c++/cli, it seem to be not have more example and turtorial can you give some help Thanks, Ba. > -----Original Message----- > From: [email protected] [mailto:osg-users- > [email protected]] On Behalf Of Jason Beverage > Sent: Sunday, June 21, 2009 12:16 AM > To: OpenSceneGraph Users > Subject: [osg-users] Windows forms and c# > > Hi all, > > This is a reply to the poster that asked about using OSG and c# and > mentioned me :) > > Back when I first wrote that message I was using Tao and osgdotnet in > some testing. These days the absolute best way to use osg with c# IMO > is to use c++/cli to make a managed control and just use osg from > native c++. You have full access to osg with no need to write > wrappers. Osgdotnet seems to have been abandoned anyway and hasn't > been updated in quite some time. > > Thanks! > > Jason _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

