Results 1 to 4 of 4

Thread: OCX location

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Question 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

  2. #2
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    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
    1. Goto Start -> Run
    2. 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.
    Show Appreciation. Rate Posts.

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: OCX location

    Quote 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.)

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    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
  •  



Click Here to Expand Forum to Full Width