Results 1 to 13 of 13

Thread: help with registering a control

  1. #1

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    help with registering a control

    Hi everyone, I am having a problem with a control. When I run the project it says that the control has not been registered! The control is: (S Grid 2 control (vbalSGrid6.ocx)). I used the control by going to Project -> components, then browsing the for the control and pointing it to the one I have in the folder with the project. Now if the project is in a different location, could this be causing the problem? Thanx everyone for the help!

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: help with registering a control

    Put it in the System directory, go to the command prompt and type : regsvr32 filepath here to register the control


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: help with registering a control

    manavo made one assumption, while I made another kind.... is the message look like it's a Windows error kind of message, or one from the control say it isn't registered (ie, trialware, etc.)

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Re: help with registering a control

    Ok, well I am confused on the whole registering control thing... can someone explain to me why you have to register the control. Can you not just have it in the same folder with the project and run off the control without registering it? And why dont we have to register all the controls they came with the installation of VB, such as textbox, listbox, etc.
    Thanx everyone for the help! =)

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

    Re: help with registering a control

    Quote Originally Posted by epod69
    Ok, well I am confused on the whole registering control thing... can someone explain to me why you have to register the control. Can you not just have it in the same folder with the project and run off the control without registering it? And why dont we have to register all the controls they came with the installation of VB, such as textbox, listbox, etc.
    Thanx everyone for the help! =)
    During software installation, the registration of controls is done for you. This does not occur when you simply copy a control from one machine to another. In order for the control to work after a copy, it must be registered with the OS in order for it to be used.

  6. #6

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Re: help with registering a control

    Hey, thanx for the reply. So now how would I find out which controls are going to need to be registered? Because im guessing its just going to be going down the line with every control now because now it said the msflexgrid control wasn't registered.

  7. #7

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Re: help with registering a control

    When I run the app on another computer I am now getting a run-time error 7 'Out of memory'. I think I know what is causing it though. I grabed all of the controls that were selected from the Components -> controls menu. I didnt grab anything that was selected in the References menu, im guessing these controls are needed as well? And another thing, I have Microsofts ActiveX Data Objects 2.7 Library selected as well as Microsoft DAO 3.6 Object Library, are both of these needed for running a database or is only one needed? Again, thanx for the help!

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

    Re: help with registering a control

    Quote Originally Posted by epod69
    And another thing, I have Microsofts ActiveX Data Objects 2.7 Library selected as well as Microsoft DAO 3.6 Object Library, are both of these needed for running a database or is only one needed? Again, thanx for the help!
    That depends on your code. If you are using only ADO, then that is the only reference you need. If you are using only DAO code then that is the only reference you need. If you are coding using both, then you need both references.

    Your registration issues would be solved for you if you bundled your project up in an installation package. Have you ever used the Package and Deployment Wizard that ships with VB6?

  9. #9

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Re: help with registering a control

    Hack, no I havent used the Package and Deployment Wizard. How do I get to that?

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

    Re: help with registering a control

    Quote Originally Posted by epod69
    Hack, no I havent used the Package and Deployment Wizard. How do I get to that?
    From your IDE, click on:
    Add-Ins/Add-In Manager

    Locate Package And Deployment Wizard, and click on it.

    In the bottom right hand screen of the Add-In Manager, you will see a frame which says: Load Behavior

    With Package and Deployment Wizard selected, check Load/Unloaded and Load On StartUp

    Click Ok.

    Now, under Add-Ins you will see a Menu item for Package And Deployment Wizard.

  11. #11

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Re: help with registering a control

    Thanx for the reply hack. I am in it now but I have a problem. It says it can't locate the file 'uxtheme.dll' and I searched the computer and can't find it anywhere. What should I do?

  12. #12

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Re: help with registering a control

    I found out uxtheme.dll is used by winxp. So why would the Package and Deployment wizard want that file, I am using win me?

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: help with registering a control

    epod69,

    For better control, look at ********** combined with Inno Setup. It will help you solve those kinds of problems.

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