Click here to Skip to main content
15,881,801 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm a student from a university of technology and I'm doing my final project using OpenGL to simulate a robot arm. I found a formal project through google search in this link:

http://www.leniel.net/2008/02/robot-arm-with-opengl-in-csharp.html#sthash.EB03Qcsd.dpbs

When I run it, it show up an error as picture below and I cant compile the project. I did a search and knew that because this project was written in Window 32 bit and my computer is running Window 64 bit. How can I fix this issue? I just want to run this project as an example before I write my own code for my robot arm. Help me please. Thank you.

This is my printscreen (sorry I cant post the picture) :

http://i.stack.imgur.com/sJwAe.png
Posted

1 solution

Go into your projects Properties page, found in Solution Explorer, and click on the Build tab. There you'll find "Platform target". Change it to x86 and recompile your project. This will force your project to run as 32-bit only.

If you leave it as "Any CPU", your code will run as a 32-bit app on 32-bit Windows and as a 64-bit app on 64-bit Windows. The problem with this is that the libraries you're using are probably 32-bit only, and since you cannot mix 32- and 64-bit code in the same process, you get the error you're looking at.
 
Share this answer
 

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