<div dir="ltr"><div><div><div><div><br></div>Using google search I came across this thread where the poster got an osg Viewer working<br></div>in a .NET forms application<br><br><a href="http://forum.openscenegraph.org/viewtopic.php?t=10132&view=previous">http://forum.openscenegraph.org/viewtopic.php?t=10132&view=previous</a><br><br></div>Maybe you can get more information and help from the people who posted in this thread.<br><br></div><div>About your specific problem with the osg::ref_ptr<> template class... this object is a non-managed C++ class and you cannot use it as a member of a managed class. So it needs to be wrapped in some .NET CLR wrapper.<br></div><div><br></div>Christian<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-01 2:50 GMT+02:00 Christian Buchner <span dir="ltr"><<a href="mailto:christian.buchner@gmail.com" target="_blank">christian.buchner@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br>What you need is a managed wrapper for OpenSceneGraph. I am not sure if any such thing exists.<br><br></div>Hint: Microsoft has abandoned their managed wrapper for DirectX for performance reasons.. <br><br></div>Christian<br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2016-04-01 2:19 GMT+02:00 Diwas Bhattarai <span dir="ltr"><<a href="mailto:osgforum@tevs.eu" target="_blank">osgforum@tevs.eu</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><u></u>
<div>
<div>Hi,<br>
<br>
I want to use Openscenegraph on my Window Form Application. In the moment I am writing a Wrapper in CLR application and exporting as a dll and importing it in my Window Form Application.<br>
<br>
The Problem:<br>
I cannot use <br><table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr> <td><span><b>Code:</b><br>
<br>
<br>
</span></td><td><br>
</td></tr><tr><td><br>
</td></tr><tr>
<td><br>
osg::ref_ptr<u></u> osgRodot;<br>
<br>
</td><td><br>
</td></tr></tbody></table><span> in my header file where my ref class is defined. <br>
<br>
</span><br><table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr> <td><span><b>Quote:</b><br>
<br>
<br>
</span></td><td><br>
</td></tr><tr><td><br>
</td></tr><tr>
<td><br>
IntelliSense: a member of a managed class cannot be of a non-managed class type<br>
<br>
</td><td><br>
</td></tr></tbody></table><span><br>
<br>
But I can use the same code inside any functions of the class. But if I initialize inside the class I cannot use it in another functions. I want to use it in different functions so it's need to be accesible to every functions.<br>
<br>
Anyone already faced this problem and could help me?<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Diwas</span></div>
<br><div>------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=66696#66696" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=66696#66696</a><br>
<br>
</div>
</div>
<br></div></div>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>