Compiler Error C3505
C3505 can be caused if you are running the (32-bit to) 64-bit cross-compiler on a 64-bit machine because the compiler is running under WOW64 and can only read from the 32-bit registry hive.
You can resolve this C3505 by building 32-bit and 64-bit versions of the type library you are trying to import and register them both. Or you can use the native 64-bit compiler, but that would require changing your VC++ Directories in the IDE to point to the 64-bit compiler.
For more information, see,