|
-
Jul 11th, 2009, 03:49 AM
#1
Thread Starter
New Member
Activex component can't create object
hi,
i searched the internet and tried their suggestions,
but nothings seems to work for me.
i compiled a program in vb6, and it runs in windows me and also in xp.
but in other machine it has an error
Activex component can't create object
please give an advice
thanks
-
Jul 11th, 2009, 04:47 AM
#2
Re: Activex component can't create object
do the other machines have the activex installed?
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jul 11th, 2009, 05:38 AM
#3
Thread Starter
New Member
Re: Activex component can't create object
yes, i tried it in other computer with ME, and it works, but wiht other computer with ME, the error appears...
please help
thanks
-
Jul 11th, 2009, 06:18 AM
#4
Re: Activex component can't create object
as you do not specify what activex you are try to create and do not say if you have installed it with your application, very hard to be able to help
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jul 11th, 2009, 06:46 AM
#5
Thread Starter
New Member
Re: Activex component can't create object
i made an application in VB6, and its working fine in xp and also in ME,
but when i copy/paste the apps in different machine with ME,
theres an error
Activex component can't create object
maybe its the comdlg32 from vb6? i dont know
-
Jul 11th, 2009, 07:15 AM
#6
Re: Activex component can't create object
What dependencies does your project use? What is checked in the project references window, what is checked in your toolbox (Ctrl+T)? The activeX's must be registered on whatever Win9x machine you are running it on. You can't just copy and paste the ocx/dll to their system folder and expect it to work. #1 below should solve your problems, #2 below is a manual workaround that may need to be handled for every dependency.
1. Recommend creating a Setup.exe file using VB's Package & Deployment Wizard & having them install via the setup app, or
2. Telling the owners of the other machine to register the ocx/dll with RegSvr32
Last edited by LaVolpe; Jul 11th, 2009 at 07:33 AM.
-
Jul 12th, 2009, 11:07 PM
#7
Thread Starter
New Member
Re: Activex component can't create object
in references
the ff are checked:
Visual Basic for applications
visual basic runtime objects and procedures
visual basic objects and procedures
OLE Automation
Windows Script Host Object Model
ActiveX Dll to perform Migration of MS Repository V1 to V2
in components
the ff are checked:
microsoft common dialog control 6.0
please help
thanks in advance
-
Jul 13th, 2009, 01:11 AM
#8
Re: Activex component can't create object
 Originally Posted by homer.favenir
in references
the ff are checked:
Visual Basic for applications
visual basic runtime objects and procedures
visual basic objects and procedures
OLE Automation
Windows Script Host Object Model
ActiveX Dll to perform Migration of MS Repository V1 to V2
in components
the ff are checked:
microsoft common dialog control 6.0
please help
thanks in advance
Are you doing any Office Automation Work. If you are programming using office Automation, then you should have office installed in the client locations
Please mark you thread resolved using the Thread Tools as shown
-
Jul 13th, 2009, 04:37 AM
#9
Re: Activex component can't create object
when do you get the error? when the program starts or on some specific action
do you have any error handling to help determine where the error occurs
are you using any instances of createobject
you may need to write out to a log file at regular intervals to find exactly where the error occurs so you can locate the missing /unregistered ocx or dll
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
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
|