Original link http://blog.csdn.net/tyxkzzf/article/details/40789901
Today open an OpenGL source code, after various modifications want to run a look at the effect, the results in my development environment in the absence of the corresponding DLL library:
Windows7 64-bit +vs2010
Tip: The program cannot start this application because the computer is missing glut32.dll ...
Resolute View System32 folder, found this file, then don't understand, why still can't find it, unreasonable ah.
Womb did not find, in order to see the effect of the code run as soon as possible, the DLL copied to the generated EXE sibling directory, ah, can be.
But not reconciled, then look at the Windows directory, found in the System32 sibling directory also has a directory: SysWOW64, it seems to be 64 unique folder, decisively check the ins and outs of this folder, here quoted the explanation of Baidu Encyclopedia:
Convert Library
The WOW64 subsystem is a lightweight compatibility layer that has the same interface on all versions of Windows. Its main purpose is to create the 32-bit environment, which provides the necessary interface for a 32-bit application to run on a 64-bit system without any modification.
Technically speaking, WOW64 is implemented by three DLLs.
Wow64.dll is the core interface of Windows NT kernel, converting between 32-bit and 64-bit calls, including manipulation of pointers and call stacks. Wow64win.dll provides the appropriate entry pointers for 32-bit applications. The Wow64cpu.dll is responsible for converting the processor between 32-bit and 64-bit modes.
And in this directory found Glut.dll, this is not a close relative of Glut32.dll, so put this DLL into the directory, and the EXE in the same class directory of the DLL removed, sure enough to run successfully.
The program cannot start this application because the computer is missing Glut32.dll