Cannot add reference to Skype4COM .dll on Windows

2019-05-08 03:50发布

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.

4条回答
We Are One
2楼-- · 2019-05-08 03:59

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楼-- · 2019-05-08 03:59

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.

查看更多
Fickle 薄情
4楼-- · 2019-05-08 04:08

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".

查看更多
祖国的老花朵
5楼-- · 2019-05-08 04:12

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

查看更多
登录 后发表回答