|
-
Mar 18th, 2006, 08:32 AM
#1
Thread Starter
New Member
OCX location
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:
Code:
Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#2.0#0; MSCOMCTL.OCX
How can I solve this?
Kind regards,
Kepler
-
Mar 19th, 2006, 02:04 PM
#2
Re: OCX location
welcome to the forums, kepler 
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
Last edited by Harsh Gupta; Mar 19th, 2006 at 02:21 PM.
-
Mar 20th, 2006, 03:42 PM
#3
Re: OCX location
 Originally Posted by kepler
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.)
-
Mar 20th, 2006, 04:11 PM
#4
Thread Starter
New Member
Re: OCX location
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|