Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project in which I have used opengl to rotate a cube . This project has a main class . I have a second project in which I have made a form and that form has a OK button. Now on clicking OK button the opengl project should open
NOTE : The opengl is a console window application while the other is a windows form application

What I have tried:

I have added the opengl rotation project to the solution of my windows form project and I have also added the reference of the opengl project to the solution project . After that I tried to make objects of the opengl rotation project but it failed.
Posted
Comments
Richard MacCutchan 30-Jun-16 12:51pm    
"but it failed."
In what way did it fail?
Member 12610295 1-Jul-16 3:29am    
Actually i don't know how to call the object of openGL console appplication project from my Windows Form project(on button click).Is there any way in which i can share the source code of these projects with you.
Richard MacCutchan 1-Jul-16 4:19am    
You don't "call the object of openGL console appplication project". Unless of course you just wish to run the application as a separate process. What you really need to do is create a DLL from the openGL project that you can call from your forms application. Or, add the relevant parts of the openGL source code into your forms application and use it directly.
Member 12610295 1-Jul-16 10:04am    
Sir, Can you be more specific please. I didn't get you.Like the main purpose of the project will be taking some values from the Windows form(for example-length of side of a Cube) and then feeding the value to the OpenGL project which will then draw a cube with the given height.
By basic step just know is just to draw a cube with any height by just clicking a button on windows form.
Richard MacCutchan 1-Jul-16 10:20am    
I cannot be specific because I do not know how your code is written. Assuming you know how to develop the two existing projects, it should be a fairly simple matter to take parts of each and build a single project that does what you want.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900