Microsoft Visual Studio 不同的版本,創建對象會報錯
例子:zkemkeeper.CZKEMClass aa = new CZKEMClass();
VS2008的版本,都是一樣的添加引用,一樣的代碼,VS2010的就會報錯,如下:
Error:Interop type 'zkemkeeper.CZKEMClass' cannot be embedded.Use the applicable interface instead.
解決:要在引用中右鍵查看屬性,修改某個屬性值就OK了
最後更新:2017-04-03 12:54:12