I am trying to compile this Hello World program in Windows 7 with Visual Studio 2010 installed, but I get the following error message when I run nvcc hellocuda.cu:<
nvcc hellocuda.cu
With CUDA 4.0 you can use the VC10 toolchain. See this answer for a step-by-step.