Results 1 to 17 of 17

Thread: [RESOLVED] OCX file Error: Class Not Registered

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Resolved [RESOLVED] OCX file Error: Class Not Registered

    Hi All,
    I am using a OCX file in my VB project it was working fine yesterday also, we did't make any changes in any file today it not working, when i drag that ocx file to my form it giving error as "Class Not Registered",. Please let me know y this error is coming and how to slove this.

    Thanks in Advance.
    Mohan

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: OCX file Error: Class Not Registered

    Have you tried regsvr32?
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Re: OCX file Error: Class Not Registered

    I tried that also, after that i added that ocx control in my project through component option, it adding in the controlbox but coming in the different image, when i drag that control it's giving Class Not Registered Error.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: OCX file Error: Class Not Registered

    What is the OCX file and where did you get it?

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Re: OCX file Error: Class Not Registered

    It's OCX file created by our team, name is Date_Time.ocx
    earlier(yeaterday) it was working fine in my system, but now it's giving error. the same ocx i have copied into some other system and registered it's working fine in that system.

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: OCX file Error: Class Not Registered

    Ok, then I think you are approaching the problem from the wrong angle.

    If it is a problem with the file, then it would be a problem with the file for everyone, not just you. If it once worked on your PC, and doesn't now, then something happened with your machine between the time it worked and now.

    What changes have occured on your machine since the last time it worked?
    Last edited by Hack; Nov 21st, 2007 at 02:26 PM.

  7. #7

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Re: OCX file Error: Class Not Registered

    As of i know i did't do any things like (Install/uninstall),..

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: OCX file Error: Class Not Registered

    Were there any new patches applied, new software installed, memory upgrades, anything at all?

    As I said, programs don't work then not work all by themselves and it is working on other machines, so I think the finger has to be pointed at your machine itself.

    Do you have a desktop or a laptop?

  9. #9

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Re: OCX file Error: Class Not Registered

    using desktop only,.. now what i did we have I have installed(Deployed) my application(ex: SchoolManagement) that using the same ocx, after installing that now this OCX file is working,.. but when i uninstalled that software it's not working again giving the same old error.

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: OCX file Error: Class Not Registered

    Ah....I new there was some kind of change.

    So, apparently this OCX doesn't like being manually registered, but is fine with being registered via a formal install.

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: OCX file Error: Class Not Registered

    As this was developed in house, have you discussed this issue with the development team?

    They might have some insight as to why this problem occurred.

  12. #12

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Re: OCX file Error: Class Not Registered

    It was developed by in house only but now that team is not working here. not supporting documents also...

  13. #13
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: OCX file Error: Class Not Registered

    Don't tell me, contractors right?

    Well, it would seem that as long as you do a formal install, it works so that would appear to be the route you have to take.

  14. #14
    Member
    Join Date
    Aug 2007
    Posts
    38

    Re: OCX file Error: Class Not Registered

    hi mohan,

    try this option hopefully to solve your problem.

    First Unregister your Control :

    Start - Program - Microsoft Visual Studio 6.0 - Microsoft Visual Studio - ActiveX Test Container - Short cut

    " File - Register Controls " - select the control from the list unregister the control first if it's registered with different path.

    If Not present your control , you select file by choosing the "Register" button

    Restart your machine...

    and then try with your program...

    what OS you are currently using?

    If server Os version then ensure you have sufficient rights to installed the new control in your machine ?

    This problem may occured by same control register with different path..


    try this above option, and let me know your thought on this...

    Hopefully resolve this issue.. best of luck...

    regards,

    mahes

  15. #15

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Re: OCX file Error: Class Not Registered

    Hi Mahes,
    I tryed as youn said, but still i am getting the same error as Class Not Registered like that.

  16. #16

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Re: OCX file Error: Class Not Registered

    What could be the problem with the OCX, If i do formal Install then it's working but if i registered the OCX from Vb Component option it's giving the "Class Not Registered" Error. Please Help What could be the Problem.

  17. #17

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    41

    Re: OCX file Error: Class Not Registered

    Hi All,
    I got solution for this problem,.. The problem is in my system MSSTDFMT.dll is not registered, so that it's giving that error when i registered the above said dll then not my ocx is working fine,..
    Thanks for all your Support.

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