Enable intellisense for CUDA in VS 2010

I tried enabling the intellisense support for CUDA in VS2010 via the instructions provided in the link: http://www.ademiller.com/blogs/tech/2010/10/visual-studio-2010-adding-intellisense-support-for-cuda-c/

The syntax is now highlighted in blue , but the editor still underline them as errors (although the source compile perfectly).

Did i miss out something in the instruction?

I tried enabling the intellisense support for CUDA in VS2010 via the instructions provided in the link: http://www.ademiller.com/blogs/tech/2010/10/visual-studio-2010-adding-intellisense-support-for-cuda-c/

The syntax is now highlighted in blue , but the editor still underline them as errors (although the source compile perfectly).

Did i miss out something in the instruction?

All right i found out what i have missed, i should have included these:
#include <cuda_runtime.h>
#include <device_launch_parameters.h>

All right i found out what i have missed, i should have included these:
#include <cuda_runtime.h>
#include <device_launch_parameters.h>

same worked for me but i still got an error after defining a texture

texture<unsigned char, 3, cudaReadModeElementType> texVolref;

the word texture gets underlined saying: “Error: texture is not a template”

any ideas how to solve this?

Does this solution give autocompletion for cuda types like those long flag names?

no it does not