Error C2661 And C2227 [openGL In VB2008]
Jun 22, 2010
i have to do a college project on this platform so i decided to learn open GL. while working with glui i am facing some problems. i downloaded glui-2.36. I thought of starting with the example1 (code added at bottom of the post) that was included in source folder of glui-2.36. i am using VB.net 2008 When i build the project it gives me 3 errors:
error C2661: 'GLUI_Checkbox::GLUI_Checkbox' : no overloaded function takes 3 arguments
error C2661: 'GLUI_Spinner::GLUI_Spinner' : no overloaded function takes 3 arguments
error C2227: left of '->set_int_limits' must point to class/struct/union/generic type
Here is cpp code:
#include <string.h>
#include <GL/glui.h>
/** These are the live variables passed into GLUI ***/
int wireframe = 0;
[code]....
View 1 Replies
ADVERTISEMENT
Nov 24, 2010
The Form Designer in the IDE is no longer working properly. When I create a new project, the Form Designer will work, but after I save it and close the IDE and reopen the next day the Form Designer no longer shows the form and instead says "To prevent possible data loss before loading the designer, the following errors must be resolved: An Error occurred while parsing EntityName.Line 2, position 62" If I click ignore and continue, then it just displays a blank form with no controls. The problem appears to have started after I unistalled and reinstalled VB2008 Express.
View 2 Replies
Jun 7, 2011
I have installed VB2008 EXPRESS EDITION.
i have added com component msflexgrid ,but Getting error with this component
An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
View 1 Replies
Sep 9, 2011
Run project error from VB2008?
View 3 Replies
Dec 3, 2009
I have a PictureBoxMain on my form. I have 6 buttons. When I click a button, I want the picture box to display an image that relates to the button I've clicked.
Public Class FormPipe1
Private Sub ButtonBranch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonBranch.Click
[Code]....
View 5 Replies
Feb 24, 2009
I want to add opengl to my vb.
View 2 Replies
Feb 17, 2012
I was trying to learn how to do openGL within a VB .NET environment and it seems that the Tao framework or OpenTK is recommended with OpenTK having a higher recommendation so that is what I chose to try using. Since I am brand new to this, I am trying to just draw a simple box, triangle, or anything really so that I can understand it all before making more complex things. I have been unsuccessful at this so far so I will list in order what I have done so far and hopefully someone here can help me correct it or provide a new example just so I can draw a simple shape.
1) I installed OpenTK using opentk-2010-10-06.exe
2) In a new project I added the references to OpenTK.dll and OpenTK.Compatibility.dll
3) I added the control (opentk.glcontrol.dll)
4) I added the actual control to my form.Using some examples online I added the rest:
5) I wrote my references in:
Imports OpenTK
Imports OpenTK.GLControl
Imports OpenTK.Platform
[code]....
The above results in no display?
View 2 Replies
Nov 6, 2010
I was wondering if anyone could steer me to any good references to using OpenGL in vb.Net? I wanted to try a simple line drawing test to start off with, and came across many old discussions about using CsGl or the Tao Framework. But I could not get CsGL to import into Net2008 (the Add Reference window simply could not see the DLL that was clearly there when using Windows Explorer). And although I could get Tao to import OK, and found portions of one person's project, I figured that somehow the GL window he was referring to had to first be set up as a GL object (new class?).In addition, all the OpenGL books I have looked at only discuss OGL with respect to some version of C.From what I have gathered, you need a connector between vb.Net and the opengl32.dll libraries and that is what CsGL and Tao are about. But the edumucation resources seem very few.
View 13 Replies
Sep 13, 2011
I wanted to install visual Basic or C++ (but Basic really seems easyer to use) with DirectX or OpenGL but I can't get it to work!I've tried Visual Basic Express 2008 and 2010 and i'm getting the same type of errors...
-> Directx
When I try this program [URL]with VB I either get
with 2008 : just a red cross on a blank screen
with 2010 : an unlimited waiting time, and when i click i get an error message that tells me to continue waiting, im forced to CTRL -ALT - DEL to shut down VB.
-> OpenGL:So i've tried a lot of times! they tell me that it's already installed on windows so i don't need any installation but then VB gives me alot of errors, telling me that some part of code isnt recognized!!
i've tried tutorials with Csgl or Tao, but none seem to work...I already got some knowlege of OpenGL but not DirectX, so could anyone please tell me which one does work on my computer and is best for creating a graphics window inside an API that i create, for instance a mob maker?
View 15 Replies
Apr 6, 2011
how to write program based on OpenGL in VS? cause when i begine debugging ,it says library not found..
View 13 Replies
Jan 31, 2009
i want to do a graphics project in Vb.net but have to use OpenGl Libraries . How do i download compatible OpenGl package and how to use them in my .net code.
View 3 Replies
Oct 9, 2010
I render a complex shape in OpenGL which requires a lot of calculations, is there anyway to export that to a state like a model that can be opened again later given you wont edit it again?
I can't create them outside the program (with something like Blender) since the shape is computed when the program starts. The render then gets translated, rotated, drawn over, etc. Note, that I don't need to edit the shape though, but I do want it in a 3D state so saving an image isn't an option.
View 2 Replies
Aug 3, 2010
i heard OpenGL is 3D and it can be used in visual basic for models and games. Now i dont know if OpenGl is a contol or coding script. But i want to know how to make a simple model in OpenGl in visual basic.
View 9 Replies
Feb 26, 2012
I have a VB2002 program that works. When I run it in VB2008, it updates, and runs and debugs until I shut down. When I try to start it up again from the updated SLN, or try to run the .exe in the BIN folder, I get the message "This application has failed to start because the application configuration is incorrect.
I checked the error logs and it says there is a syntax error in the first line of the vhost.manifest file in the BIN folder. The first line is the xml declaration and it includes the parameter standalone = "yes".
When I put the error message into Google I only get references to Visual C++ compiled programs running on machines without the C++ redistributable dll. That doesn't seem to apply here at all, since I have the VB 2008 express edition installed on this
View 2 Replies
Jan 7, 2010
My pc is a Vista SP1 + VS2008 I try to import a csv file into an existing access database with the following code but I have the message that the database is only in read access and I can't update it with the csv file.I tested the code on an other pc with XP and VS2005 and it works.
[Code]...
View 2 Replies
Jan 4, 2011
I am trying to create a tool to make terrains for my game and would like to develop it in Visual Basic Express 2010. I want to use OpenGL but am having trouble.1. Will VB support OpenGL 3.x or higher?
View 6 Replies
Nov 12, 2010
I am running into the strangest problem that I just can't place my finger on. I've been developing an application in VB.net for the last couple months in Windows 7. The program involves some basic OpenGL drawing and animation with basic shapes (squares and circles) and basic textures mapped onto pointlists. The time has come to distribute the program to another machine. On some machines though, I encounter problems when I'm drawing textures. I know that openGL is still functional because drawing basic squares and circles still occur, the textured objects are the only things missing.
[Code]...
View 2 Replies
Sep 3, 2010
I'm working on a game engine, and I want to be able to draw a billboarded (i.e. rectangular to the screen) quad with the center-bottom of the quad being determined by a single point.
View 1 Replies
Oct 19, 2010
I'm currently running into a problem regarding animation in OpenGL. I have between 200 and 10000 gears on the screen at a time all rotating. When the window is not in maximized view, my CPU runs at about 10-20 % consistently. No spikes, no stuttering in the animation, it runs perfectly smooth regardless of the number of gears on screen. When I maximize the window though, everything falls apart. My CPU maxes out, I begin getting weird spikes in CPU usage, the animation begins stuttering as a result, and it just looks really ugly, even when I have only 200 gears on screen.
My animation technique looks like this:
While Animating
Calculate current rotation angle based on a running timer
draw Image
call glFlush()
End While
I'm using the Tao framework in VB.net. I'm not performing any other calculations other than the ones to calculate the rotation angle mentioned above and perform a few glRotateD and glscaleD in the method to draw the image.
In addition, I guess I was under the impression that regardless of the window size in an orthographic 2-dimensional drawing that is scaling on resizing of the window, the drawing time would always take the same amount of time. Is this a correct assumption?
Note that I've seen the animation run perfectly smooth at full screen before. Every once in awhile, OpenGL will decide it's happy and run perfectly at full screen using between 10-20% of the CPU (same as when not maximized). I haven't pinpointed what causes this though, because it will run one time perfectly, then without changing anything, I will run it again and encounter the choppiness. I simply want to pinpoint what causes the animation to slow down and eliminate it.
I've run a dot trace on my program and it says that the swapBuffers method is using 55 % of my processing time even though I'm never explicitly calling the method. Is the method called by something else that I can eliminate, or is this simply OpenGL's "dead time" method to limit the animation to 60 fps?
View 1 Replies
Sep 28, 2011
make a openGL overlay so for an examplei play a game and when i click shift + tab then the game will fade and my application will be seen but without minimizing the game
View 3 Replies
Jul 26, 2011
Does anybody know how I can render openGL into a Visual Basic 2010 picture box?If you havent already done so please delete the abusive posts that responded to my original enquiries. I have decided to start a new thread on this subject rather than in an existing thread because it's more convinient for me.
View 9 Replies
Dec 25, 2011
i have installed visual studio 2010 32 bit on my new computer which have windows 7 64 bit. Everything seems ok. But now I try to learn how to draw some spheres with movement. I have tried to install openGL2 but it does not work or said that it does not fit with 64 bit, or it works only with VC.
Could any one, please, give me a short introduction to install and use open GL in vb.net 2010 installed on windows 7 64 bits ?
View 3 Replies
Oct 28, 2009
I am getting two errors for "expression is not an array or method, and cannot have an argument list," When debugging, the formula works quite well. However I will lose points for blue squiggly lines. I am not allowed to use any built in functions like math.
[Code]...
View 1 Replies
Jan 9, 2011
I have an error in the beginning of a program I have converted from VB2002 to 2008, and I can't seem to find a way out of it. The error message is:Error2'Protected Overrides Sub Dispose(disposing As Boolean)' has multiple definitions with identical signatures.C:Documents and SettingsAdministratorDesktopBack UpExpendable VS8 copiesClick Counter VS8Click Counter VS8frmSecond.Designer.vb729Click Counter VS8
The offending code seems to be the word "Dispose" after the words "Overrides Sub".
[Code]...
View 3 Replies
Sep 23, 2011
We have a GIS application that has some performance issues. It creates and sends an image to a web browser. We start with a Bing Maps imager, add complex polygons (complete with transparent fill), save the finished image as a PNG, and send it to the browser.
The idea has come up that we could possibly install a graphics card and use DirectX or OpenGL to improve performance. I believe this would be the case even though we ultimately generate an image instead of sending the data the the screen. I believe our processes could still make use of the API and the hardware acceleration it provides. Our process is not unlike what CGI film makers do to render individuals frames of a film, though we simply render a single image and send it, as opposed to the hundreds of thousands of images needed for a single CGI film.
So my question is: would a powerful graphics card and use of DirectDraw or OpenGL provide us a worthwhile performance boost? It can take us 20-30 seconds to render a more complex map. Which is a long time to wait on a web page...
View 10 Replies
Jan 15, 2012
I want to use "OpenGL" in my project. Is it possible to associate it with "Visual Basic" application developed in Visual Studio 2010? If yes then how can we do it.
View 1 Replies
Feb 15, 2010
In one of my forms witch I imported from VB2008 there are all properties saved in the *.resx file. One Property, of the Type System.Windows.Forms.Keys, can contain the Value 'Ctrl+F1' witch compiles fine in VB2008, but not in VB2010. To reproduce, simply add the following to any resx file:
<data name="cmdFenster.ShortcutKeys" type="System.Windows.Forms.Keys, System.Windows.Forms">
<value>Ctrl+F1</value>
</data>
It will compile fine with VB2008, but not with VB2010. Notice: The VB2010 also generates this Code in the resx file
View 2 Replies
Aug 22, 2009
I have the following code:
[Code]....[Code]....
I get the compiler error message: error BC30560: "MySqlConnection" ist im Namespace "MySql.Data.MySqlClient" nicht eindeutig. in English (I think): "MySqlConnection" is not unique in Namespace "MySql.Data.MySqlClient".
View 2 Replies
Feb 28, 2009
I am attempting to make a tabbed browser and I am getting a couple of errors. First one is "name 'addtab' is not declared" the second is "reference to a non-shared member requires an object reference" the third is "statement is not valid in a namespace" and lastley "the resource name 'stop' is not a valid identifier"
View 18 Replies
Jun 30, 2010
I have inherited support for a program written in VB2008
The problem I have is as follows:
Users have a low screen resolution (company policy) and so can't see the bottom of a particular form.
The bottom of the form has buttons that allow them to navigate between its' four pages so they need to be able to see them. This being the case I need to add a scrollbar to the form.
If I try to drag and drop a vscrollbar from the toolbox it just sits there at runtime (you can slide the button on the toolbar up and down but nothing happens regarding scrolling the page.
All the reading I have done seems to point to forms being given scrollbars in accordance to the AutoScroll, AutoScrollMargin and AutoscrollMinSize properties of the Form itself.
By setting these properties I can get scrollbars to appear in the IDE but they are not there at runtime.
I think I'm probably missing something really obvious here but, so far, have been unable to work out what it is.
View 10 Replies