Use ILDASM to dump the type library Interop.WIAVIDEOLib.dll then use notepad to replace occurrences of valuetype _RemotableHandle& to native int. Then compile the iL dump file you fixed using ILASM in the CMD ilasm /DLL WIAVIDEOLib.il. Add a reference to the new dll and you are set to go.这是.NET网站上的解释,这个IL文件我去哪里找?
简单的VS里只有WIAVIDEOLib.dll引用,但引用这个文件程序要出错的,只要引用Interop.WIAVIDEOLib.dll 文件就可以了
现在怎么把WIAVIDEOLib.dll变成Interop.WIAVIDEOLib.dll 文件?