Interop type 'jmail.POP3Class' cannot be embedded. Use the applicable interface instead.

在vs2010中定义 private jmail.POP3Class popClient;会出现error CS1752: Interop type 'jmail.POP3Class' cannot be embedded. Use the applicable interface instead.的编译错误。原因是我们添加 jmail的时候,由于jmail.dll太大,微软设置了这个属性Embed Interop Type =true . 解决的办法是:直接去掉Class后缀。

你可能感兴趣的:(interface)