Click to See Complete Forum and Search --> : OCX location
kepler
Mar 18th, 2006, 07:32 AM
Hi,
I've downloaded a VB project from the Net. The problem is that when I load the project, it tells me that the c:\path\MSCOMCTL.OCX could not be loaded ( the path is where the project is ). I've tried to place the OCX in the same directory but it didn't worked out.
In the Visual Basic Project, I find:
Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#2.0#0; MSCOMCTL.OCX
How can I solve this? :ehh:
Kind regards,
Kepler
Harsh Gupta
Mar 19th, 2006, 01:04 PM
welcome to the forums, kepler :wave:
you need to register the OCX on any pc, if you want to use it.
To register an OCX - Method 1
Goto Start -> Run
In the Run Dialog Box, typre RegSvr32.exe[BLANK SPACE]Path of the OCX
To register an OCX - Method 2
within the Project, goto Project menu -> Components. this will open the Components Dialog box. Browse to the location of the OCX container and click OK. this will automatically register teh OCX. simple na!! ;)
To register an OCX - Method 3
sometimes, it happens that despite 2 msthods available, user is not able to register / install the ocx properly. In that case, you may use 3rd party OCX installer. there are many available.
try searching the VBF for them also. i am not sure but i saw one here. sorry if i am wrong.
To Unregister an OCX
Like method 1 for registering the ocx, in the Run dialog Box, type
RegSvr32.exe[BLANK SPACE]-u[BLANK SPACE]path of OCX
or the 3rd solution. i suppose good OCX installers also give you option to unregister them.
hope it may solve your problem.
Harsh Gupta
Al42
Mar 20th, 2006, 02:42 PM
it tells me that the c:\path\MSCOMCTL.OCX could not be loaded ( the path is where the project is ).Are you using MSCOMCTL.OCX as an example, or is this the file that your project can't load? MSCOMCTL.OCX isn't in your program folder, it's in (in XP) WINDOWS\system32\
Go to Components (Ctrl-T in the IDE), look for Microsoft Windows Common Controls 6.0 (SP6) and check the box. UNcheck the box for any other listing for a control whose filename (in the panel) is MSCOMCTL.OCX. (If you haven't installed SP6 you may have a problem.)
kepler
Mar 20th, 2006, 03:11 PM
Hi,
I've already solved the problem: I've deleted the line in the vbp file, and inserted the control as you said.
Thanks anyway.
Kind regards,
Kepler :rolleyes:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.