mikail
asked on
"runtime error 339, MSCOMCTL.OCX or one of its dependencies not correctly registered: a file is missing or invalid"
Why do I get a "runtime error 339, MSCOMCTL.OCX or one of its dependencies not correctly registered: a file is missing or invalid" whenever I try to execute my Visual Basic Application?
Also Component MSMASK32.ox or one of its dependencies is not correctly registered, a file is missing or invalid.
Also Component MSMASK32.ox or one of its dependencies is not correctly registered, a file is missing or invalid.
That will solve the problem..
Ajay Chadha ... :-)
Ajay Chadha ... :-)
ASKER
what about WinNT and Win2K?
ASKER
also my friends have complained that these two files dont exist on there system.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Those file must be copied in the system folders from a machine which have those files (your development machine).
For winnt & windows2k
Regsvr32 c:\winnt\system32\mscomctl 32.ocx
Good Luck...
Ajay Chadha .. :-)
For winnt & windows2k
Regsvr32 c:\winnt\system32\mscomctl
Good Luck...
Ajay Chadha .. :-)
Personally I'll suggest you to make a setup of your application. It can be done through any Professional install MAker such as Wise Install Maker or InstallShield or the cheapest and best solution will be to go with the Package and deployment wizard which is shipped with Visual Basic Free of cost. It'll automayically include all the OCX's and Dll's Required by ur application and will automaticaly register htem on the user's machine...
Ajay Chadha ... :-)
Ajay Chadha ... :-)
well the best alternative is to go with Package and deployment wizard....
But, If you'd like to register them manually through the code then use this...
Private sub Form_load()
Shell "REGSVR32 /s c:\winnt\system32\mstask32 .ocx"
End Sub
Good Luck...
Ajay chadha ... :-)
But, If you'd like to register them manually through the code then use this...
Private sub Form_load()
Shell "REGSVR32 /s c:\winnt\system32\mstask32
End Sub
Good Luck...
Ajay chadha ... :-)
Hello mikail,
Any Response or Progress...???
Ajay Chadha ... :-)
Any Response or Progress...???
Ajay Chadha ... :-)
Click on start menu-> Run
Type :- Regsvr32 c:\windows\system\mscomctl
and press enter.
Your problem is solved...
same with the second control as
Regsvr32 c:\windows\system\msmask32
Good Luck...
Ajay Chadha ... :-)