如题,
关于这个问题,我在网上找了好多方案,但都不管用。
下面为脚本方法(win32位系统与win64位系统需进入不同的文件夹下,执行下面的脚本)
32位系统
cd C:\Windows\System32
64位系统
cd C:\Windows\SysWOW64
regsvr32 MSCOMCTL.OCX
regtlib msdatsrc.tlb
需要注意的是,regtlib.exe这个文件,system32下是否存在,如果没有,需要去网上下载一个,其实大部分出现这问题的电脑,都是因为缺少这个文件导致的。
另附:
以下为常用的控件列表及文件名称,方便查阅
----- VB6 Runtime and Controls -----
MSVBVM60.DLL - VB6 Runtime - 6,0,98,15
COMDLG32.OCX - Microsoft Common Dialog Control 6.0 (SP6) - 6,1,98,16
MSCOMCTL.OCX - Microsoft Windows Common Controls 6.0 (SP6) - 6,1,98,16 ListView, TreeView, StatusBar, ToolBar
MSCOMCT2.OCX - Microsoft Windows Common Controls-2 6.0 (SP6) - 6,1,98,16 DTPicker, MonthView, Animation, UpDown
COMCT332.OCX - Microsoft Windows Common Controls-3 6.0 (SP5) - 6,7,0,9816 Coolbar
COMCTL32.OCX - Microsoft Windows Common Controls 5.0 (SP2) - 6,0,98,16 (VB5)
COMCT232.OCX - Microsoft Windows Common Controls-2 5.0 (SP2) - 6,0,98,16 (VB5)
TABCTL32.OCX - Microsoft Tabbed Dialog Control 6.0 (SP6) - 6,1,98,16 SSTab
RICHTX32.OCX - Microsoft Rich Textbox Control 6.0 (SP6) - 6,1,98,16
MSFLXGRD.OCX - Microsoft FlexGrid Control 6.0 (SP6) - 6,1,98,14 (VB5)
MSHFLXGD.OCX - Microsoft Hierarchical FlexGrid Control 6.0 (SP4) (OLEDB) - 6,1,98,16
MSCHRT20.OCX - Microsoft Chart Control 6.0 (SP4) (OLEDB) - 6,1,98,16
MSMASK32.OCX - Microsoft Masked Edit Control 6.0 (SP3) - 6,1,98,16
MCI32.OCX - Microsoft Multimedia Control 6.0 (SP6) - 6,1,98,16
MSADODC.OCX - Microsoft ADO Data Control 6.0 (SP6) (OLEDB) - 6,1,98,16
MSDATGRD.OCX - Microsoft DataGrid Control 6.0 (SP6) (OLEDB) - 6,1,98,16
MSDATLST.OCX - Microsoft DataList Control 6.0 (SP3) (OLEDB) - 6,1,98,16
MSDATREP.OCX - Microsoft DataRepeater Control 6.0 (OLEDB) - 6,1,98,16
MSWINSCK.OCX - Microsoft Winsock Control 6.0 (SP6) - 6,1,98,16
MSINET.OCX - Microsoft Internet Transfer Control 6.0 (SP6) - 6,1,98,16
MSMAPI32.OCX - Microsoft MAPI Controls 6.0 - 6,1,98,16
MSCOMM32.OCX - Microsoft Comm Control 6.0 - 6,1,98,16