Cannot add reference to Skype4COM .dll on Windows 7 x64

萝らか妹 提交于 2019-12-10 09:50:30

问题


I received the dialog indicating successful registration of Skype4COM.dl using regsvr32.
However, when I try to add a reference to Skype4COM 1.0 Type Library from the COM tab into my VS 2008 project, I get "A reference to Skype4COM 1.0 Type Libary' could not be loaded.

Did not run into this problem on 32 bit XP.

Dependency walker says I am missing GPSVC.DLL and IESHIMS.DLL but these are found in c:\system\windows32 and c:\program files\internet explorer respectively.

How do I fix this?

TIA.


回答1:


The type library embedded in skype4com.dll is not very clean and generates warnings. Enough to stop the IDE from adding it. You will have to do it by hand. Start the Visual Studio Command Prompt and run the tlbimp.exe utility to generate the import library. You'll see the warnings but get the .dll you need. Afaik the warnings are benign as long as you only use it from a project which has the Platform target setting at "x86".




回答2:


My approach is different, but it works for me. In command line: regsvr32 skype4com.dll , then you can add reference as usual in IDE.




回答3:


The instructions here finally allowed me to solve this problem and explained the problems I was having. Wanted to post it in case anyone else might find it useful.




回答4:


Compile your app for 32bits. Build -> Platform Target: x86. This works on 32bits and 64bits



来源:https://stackoverflow.com/questions/8576819/cannot-add-reference-to-skype4com-dll-on-windows-7-x64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!