c++ - Why does the error C3505: "cannot load type library" occur? -


i have compiler error: "error c3505: cannot load type library".

i have com 32/64 bit component, compiled msvc 2012 in both configurations. have test application loads com component during start lines:

 #define id_string "libid:c734d1af-8cbe-4cae-b501-165099037e41"   #import id_string version("0.1") no_namespace 

in 32bit variant works fine. in 64bit see above-mentioned compiler error. says here problem in wow bitness stuff. i've checked registry. corresponding type library found in both nodes:

  • hkey_classes_root\typelib\{c734d1af-8cbe-4cae-b501-165099037e41}
  • hkey_classes_root\wow6432node\typelib\{c734d1af-8cbe-4cae-b501-165099037e41}

so wrong?

up: i've found problem. compile tries load type library 32bit dll (only in compilation stage, in runtime program uses 64bit version). question how made compiler use 64bit type library while compilation.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -