I downloaded the Visual Studio Ranger sample application but it doesn't work
Most of the sample projects are with Visual Studio 2003 which did not
offer a 64-bit compile option. Ranger is a 32-bit binary so the
application must also be compiled as a 32-bit binary. 32-bit binaries
can still be run on a 64-bit operating systems. The basic limitation is
the amount of memory that can be addressed which is generally not an
issue.
Set Visual Studio's Link-Advanced-Target Machine option to
X86. See the attached screen shot for an example of where to find this
option.