|
-
May 13th, 2005, 03:23 PM
#1
Thread Starter
Addicted Member
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!
-
May 13th, 2005, 03:34 PM
#2
-
May 13th, 2005, 03:52 PM
#3
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
-
May 16th, 2005, 09:23 AM
#4
Thread Starter
Addicted Member
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! =)
-
May 16th, 2005, 09:28 AM
#5
Re: help with registering a control
 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.
-
May 16th, 2005, 09:53 AM
#6
Thread Starter
Addicted Member
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.
-
May 16th, 2005, 10:44 AM
#7
Thread Starter
Addicted Member
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!
-
May 16th, 2005, 11:03 AM
#8
Re: help with registering a control
 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?
-
May 16th, 2005, 11:43 AM
#9
Thread Starter
Addicted Member
Re: help with registering a control
Hack, no I havent used the Package and Deployment Wizard. How do I get to that?
-
May 16th, 2005, 01:31 PM
#10
Re: help with registering a control
 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.
-
May 16th, 2005, 01:35 PM
#11
Thread Starter
Addicted Member
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?
-
May 16th, 2005, 02:11 PM
#12
Thread Starter
Addicted Member
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?
-
May 17th, 2005, 02:33 PM
#13
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|