Click here to Skip to main content
11,644,284 members (71,725 online)
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 1: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 570
1 jyo.net 484
2 Afzaal Ahmad Zeeshan 413
3 DamithSL 308
4 Sergey Alexandrovich Kryukov 276
0 OriginalGriff 795
1 DamithSL 611
2 Mika Wendelius 494
3 jyo.net 484
4 Afzaal Ahmad Zeeshan 404


Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 11 Apr 2013
Copyright © CodeProject, 1999-2015
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