Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# library problem
I have a windows form project that I started before installing the SharpGL extension.

The SharpGL library works fine if I create a new SharpGL project. Even if I try to run the examples, they work (after reimporting all references). But when I try to add a SharpGL control in my project, it says that it cannot find the namespace "OpenGLControl" in the SharpGL library. Having in mind that I imported the SharpGL into my project, it's kind of strange, but it's true.

When I type SharpGL.OpenGLControl, it doesn't appear in the autocomplete.

How can I add an OpenGLControl without starting my project from scracth?
Posted 11-Apr-13 2:54am
Comments
Aarón C de C at 11-Apr-13 9:32am
   
Hi, thanks for your reply.
 
The references are already added. I'm adding the OpenGLControl from the toolbox, which means it exists in the project. When I drag it inside the form, a black box appears as it should be. But when I try to compile, it says that the namespace OpenGLControl does not exist.
 
Then I type
 
<pre lang="c#">SharpGL.OpenGLControl</pre>
 
And it says it doesn't exist. However, the SharpGL namespace does exist and I can access it's classes. It's just that one that doesn't appear.
 
But if I go to my SharpGL project, the SharpGLControl class exists and appears in the autocomplete.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hello,
 
Please make sure that your project has reference to following assemblies.
  • SharpGL.dll
  • SharpGL.SceneGraph.dll
  • SharpGL.Serialization.dll
  • Either SharpGL.WinForms.dll Or SharpGL.WPF.dll
With SharpGL 2.0 Visual Studio Extensions you also get new Project Types See link[^].
 
Regards,
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 459
1 Maciej Los 325
2 Sergey Alexandrovich Kryukov 234
3 DamithSL 233
4 BillWoodruff 200
0 OriginalGriff 7,168
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,461
3 Manas Bhardwaj 4,876
4 Maciej Los 4,450


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 11 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100