要是你用的vs的话,可以看看他的出错信息,双击它可以定位,可以打个断点,或者F10、F11,等等,其他的环境就不清楚了
midl : command line error MIDL1001 : cannot open input file oaidl.idl无法打开输入文件oaidl.idl确认下文件是否存在环境设置 中文路径等问题