win7 64位下编译的VS2010 C#可执行程序,引用Microsoft Shell Controls And Automation获取音频文件时长,在其他win7 64位或者win10 64位电脑上运行时,获取文件时长为空,解决方法:
1、检查控制面板,看是否已安装音频管理器,若没有则需安装。
2、下载Interop.Shell32.dll文件的1.2版本
3、移除Shell32的引用
4、添加Interop.Shell32引用,引用-添加引用-浏览,查找Interop.Shell32.dll文件。
确定即可。