Reputation: 441
I have to make a presentation of my programm tomorow. I used Visual Studio 2010, but the presentation pc is my university labs pcs witch have vs 2008. I can't install anything on them. The language is c++, opengl
Can I make my executable backwards compatible or should I rely on my 8 years old laptop? I hate it if I have to use it cause the project is opengl and the frame rates I get are low...
Upvotes: 1
Views: 1165
Reputation: 4651
You can copy the missing .dll over next to the .exe file to get it up and running. Or you can install the Microsoft Visual C++ 2010 Redistributable Package (x86) http://www.microsoft.com/download/en/details.aspx?id=5555
You can use Dependncy Walker to find other missing .dlls http://www.dependencywalker.com/
Upvotes: 1
Reputation: 613562
Rebuild your application using static linking rather than dynamic linking.
The problem you currently have is because your are linking to the runtime dynamically and it is not installed on the target machine. Statically linking the runtime sidesteps the issue. Note that dynamic linking is to be preferred for deployed software, but for the sake of your current predicament, static linking is the expedient solution.
The setting can be found under: Project | Properties | Configuration Properties | C/C++ | Code Generation | Runtime Library. Change this setting to Multi-threaded (/MT).
Upvotes: 5