我有一个VB6项目,当我尝试运行它时,它会抛出一些错误,比如:
The referenced component 'AxMSCommLib' could not be found.
The referenced component 'AxOWC' could not be found.
The referenced component 'ComctlLib' could not be found.
The referenced component 'Microsoft.Office.Interop.Excel' could not be found.
当我删除这些引用时,它会显示错误,而这些引用在后面的代码中继续使用,比如在这一行中:
Public WithEvents ProgressBar2 As AxComctlLib.AxProgressBar
它说
Type 'AxComctlLib.AxProgressBar' is not defined.
面对这种情况,第一次该如何解决?如何在项目中添加这些引用,或者是否有其他解决方案?