Programs created in Visual Basic require common Visual Basic runtime files (OCXs and DLLs). These files are included with Windows 2000, ME and XP, but not Vista. Microsoft “support” these DLL and OCX files, but they are NOT “shipped” with Vista. This means “We support you, we just won’t include them with Vista”.
There are 129 VB runtime files in all – 94 are included with Vista, 35 are not. The files not shipped with Vista are:
msflxgrd.ocx
comdlg32.ocx
msbind.dll
mswinsck.ocx
msinet.ocx
mscomctl.ocx
msdatlst.ocx
msmask32.ocx
tabctl32.ocx
mscomm32.ocx
msdbrptr.dll
msdatgrd.ocx
mscomct2.ocx
mshflxgd.ocx
msadodc.ocx
msstdfmt.dll
comct232.ocx
comct332.ocx
comctl32.ocx
dbadapt.dll
dbgrid32.ocx
dblist32.ocx
mci32.ocx
mscdrun.dll
mschrt20.ocx
msdatrep.ocx
mshtmpgr.dll
msmapi32.ocx
msrdc20.ocx
msrdo20.dll
msstkprp.dll
mswcrun.dll
picclp32.ocx
richtx32.ocx
sysinfo.ocx
If you have upgraded from XP to Vista, you’ll be OK because you will already have the files installed. If, however, you’ve made a clean install of Vista or have bought a new PC with Vista pre-loaded, then you will probably no longer be able to run your Visual Basic programs.
Some time ago my old computer died and I’ve only recently bought a new one running under Vista. When I tried to run my DATman program I got this rude error message: “Component COMDLG32.OCX or one of its dependencies not correctly registered: a file is missing or invalid”.
DATman needs to access COMDLG32.OCX and MSCOMCTL.OCX – both files were absent so the program would not run. In order to get DATman up and running, I had to obtain the files, put them in my c:\windows\system32 folder, and then register them. The utility now works fine and dandy.
In the light of this, I have attached a zip file containing these two OCXs for the benefit of anyone with a clean install of Vista who wants to run DATman. In order to register the files you first need to turn off the UAC (User Account Control). The complete procedure is as follows:
1. Put the files into your c:\windows\system32 folder.
2. Click “Start” button.
3. Select “Control Panel”.
4. Select “User Accounts and Family Safety”.
5. Select “User Accounts”.
6. Click on the link “Turn User Account Control on or off”.
7. Uncheck the option “Use User Account Control (UAC) to help protect your computer”.
8. Click the “Restart Now” button.
9. After your computer has restarted, click “Start” button.
10. Select “All Programs”.
11. Select “Accessories”.
12. Select “Run”.
13. Type: regsvr32 comdlg32.ocx
14. Click “OK” – you will receive a dialog telling you that registration has been successfull.
15. Type: regsvr32 mscomctl.ocx
16. Click “OK” – you will receive a dialog telling you that registration has been successfull.
17. Turn the UAC back on.
DATman should now run fine and dandy. You may need to obtain and register other files in the list to enable some of your other programs to run. VB developers should be aware of this shortcoming of Vista and include the neccessary VB runtime files with their applications. Alternatively, users could download vbrun60sp6.exe from Microsoft.
vbrun60sp6.exe is a self-extracting executable file that installs the Microsoft Visual Basic runtime files required by all applications created with Visual Basic 6.0.
At the moment this isn’t likely to affect many users (only those who have bought a new PC with Vista pre-loaded or who have made a clean install of Vista – not upgraders from XP) but over time, as more and more people acquire new computers, it will become more significant.
Programs created in Visual Basic require common Visual Basic runtime files (OCXs and DLLs). These files are included with Windows 2000, ME and XP, but not Vista. Microsoft “support” these DLL and OCX files, but they are NOT “shipped” with Vista. This means “We support you, we just won’t include them with Vista”.
There are 129 VB runtime files in all – 94 are included with Vista, 35 are not. The files not shipped with Vista are:
msflxgrd.ocx
comdlg32.ocx
msbind.dll
mswinsck.ocx
msinet.ocx
mscomctl.ocx
msdatlst.ocx
msmask32.ocx
tabctl32.ocx
mscomm32.ocx
msdbrptr.dll
msdatgrd.ocx
mscomct2.ocx
mshflxgd.ocx
msadodc.ocx
msstdfmt.dll
comct232.ocx
comct332.ocx
comctl32.ocx
dbadapt.dll
dbgrid32.ocx
dblist32.ocx
mci32.ocx
mscdrun.dll
mschrt20.ocx
msdatrep.ocx
mshtmpgr.dll
msmapi32.ocx
msrdc20.ocx
msrdo20.dll
msstkprp.dll
mswcrun.dll
picclp32.ocx
richtx32.ocx
sysinfo.ocx
If you have upgraded from XP to Vista, you’ll be OK because you will already have the files installed. If, however, you’ve made a clean install of Vista or have bought a new PC with Vista pre-loaded, then you will probably no longer be able to run your Visual Basic programs.
Some time ago my old computer died and I’ve only recently bought a new one running under Vista. When I tried to run my DATman program I got this rude error message: “Component COMDLG32.OCX or one of its dependencies not correctly registered: a file is missing or invalid”.
DATman needs to access COMDLG32.OCX and MSCOMCTL.OCX – both files were absent so the program would not run. In order to get DATman up and running, I had to obtain the files, put them in my c:\windows\system32 folder, and then register them. The utility now works fine and dandy.
In the light of this, I have attached a zip file containing these two OCXs for the benefit of anyone with a clean install of Vista who wants to run DATman. In order to register the files you first need to turn off the UAC (User Account Control). The complete procedure is as follows:
1. Put the files into your c:\windows\system32 folder.
2. Click “Start” button.
3. Select “Control Panel”.
4. Select “User Accounts and Family Safety”.
5. Select “User Accounts”.
6. Click on the link “Turn User Account Control on or off”.
7. Uncheck the option “Use User Account Control (UAC) to help protect your computer”.
8. Click the “Restart Now” button.
9. After your computer has restarted, click “Start” button.
10. Select “All Programs”.
11. Select “Accessories”.
12. Select “Run”.
13. Type: regsvr32 comdlg32.ocx
14. Click “OK” – you will receive a dialog telling you that registration has been successfull.
15. Type: regsvr32 mscomctl.ocx
16. Click “OK” – you will receive a dialog telling you that registration has been successfull.
17. Turn the UAC back on.
DATman should now run fine and dandy. You may need to obtain and register other files in the list to enable some of your other programs to run. VB developers should be aware of this shortcoming of Vista and include the neccessary VB runtime files with their applications. Alternatively, users could download vbrun60sp6.exe from Microsoft.
vbrun60sp6.exe is a self-extracting executable file that installs the Microsoft Visual Basic runtime files required by all applications created with Visual Basic 6.0.
At the moment this isn’t likely to affect many users (only those who have bought a new PC with Vista pre-loaded or who have made a clean install of Vista – not upgraders from XP) but over time, as more and more people acquire new computers, it will become more significant.
sumber dari sini