Building custome CUDA .dll Error while trying to link to CUDA .dll created with MS VS 2011

I am working with CUDA Toolkit 4.1, Visual Studio 2010, and Windows 7 Ultimate 64-bit. I am trying to build a library of CUDA kernels that I will be calling from an image processing .dll that I have created. I created an NVIDA CUDA 4.1 Project creating MS Visual Studio 2010, I then added a Win 32 .dll project that I had already created. I then switched the build target in the CUDA project from “.exe” to “.dll”. The CUDA project builds with no errors and creates the .dll. However, when I try linking from my other project, I get:

fatal error LNK1107: invalid or corrupt file: cannot read at 0x330

I am guessing that the CUDA .dll that I am trying to create is scrogged due to some project settings.

Thanks in advance for any help.

But i get:

error LNK2019: unresolved external symbol _TestHelloCUDA referenced in function _wmain D:…\dll_2_App.obj