Re: [osg-users] OSG and .NET in Windows 7 x64

2016-04-01 Thread Rafa Gaitan
Hello Diwas, Yes, that's something you cannot get rid of it when you are building with c++/cli in visual studio. Our solution was implementing a holder like osg::ref_ptr in .net: template ref class msclr_refptr { ... } You can use the osg::ref_ptr class as inspiration to replicate the behaviour

Re: [osg-users] OSG and .NET in Windows 7 x64

2016-04-01 Thread Diwas Bhattarai
Hi, Did anybody came accross the problem when working with c# > a member of a managed class cannot be of a non-managed class type I posted the question in http://forum.openscenegraph.org/viewtopic.php?p=66696#66696 Thank you! Cheers, Diwas[/quote] -- Read this topic online

Re: [osg-users] OSG and .NET in Windows 7 x64

2012-07-16 Thread Elhanan Ilani
Moving to 3.0.1 solved the problem! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48867#48867 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cg

Re: [osg-users] OSG and .NET in Windows 7 x64

2012-07-16 Thread Elhanan Ilani
Yes. i'm linking with the right libraries. Also, i'm using version 3.0.0. I'll try 3.0.1 and see if it helps. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48864#48864 ___ osg-users mailing list osg

Re: [osg-users] OSG and .NET in Windows 7 x64

2012-07-16 Thread Frederic Bouvier
Hi, > The code works when compiling for x86 under Win7 x64. The problem is when > compiling for x64. Maybe a stupid question, but do you link with x64 version of OSG libraries ? Regards, -Fred ___ osg-users mailing list osg-users@lists.openscenegraph.

Re: [osg-users] OSG and .NET in Windows 7 x64

2012-07-16 Thread Elhanan Ilani
Thanks for your reply. The code works when compiling for x86 under Win7 x64. The problem is when compiling for x64. Elhanan. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48856#48856 ___ osg-users m

Re: [osg-users] OSG and .NET in Windows 7 x64

2012-07-16 Thread Smelik, R.M. (Ruben)
ph.org] On Behalf Of Elhanan Ilani Sent: zondag 15 juli 2012 15:08 To: osg-users@lists.openscenegraph.org Subject: [osg-users] OSG and .NET in Windows 7 x64 Hi, I'm trying to embed an OSG control inside a Windows Forms c# application. I'm using the following code: Code: // get the win

[osg-users] OSG and .NET in Windows 7 x64

2012-07-15 Thread Elhanan Ilani
Hi, I'm trying to embed an OSG control inside a Windows Forms c# application. I'm using the following code: Code: // get the window handle(HWND) out of the rendering label HWND mHwnd=(HWND)m_renderingLabel->Handle.ToInt64(); // get the dimensions of the window handle RECT rect; GetWindowRect(mHw