-
What is the meaning of the error:
Error: 426 ActiveX Component cann't create object.
I am getting this error when I am trying to run my VB application.
I don't know what I am missing.
The same application is running on a a different machine with no problem.
I appreciate your help.
Laxmi
-
If u r using, Microsoft remote data object 2.0 and then, if MSRDO20.DLL is available on the other machine, then try copying it onto ur machine(in system directory).uncheck 'Microsoft remote data object' in references before copying and check back after u copy it. My guess is that ur remote data object (DLL) is corrupted.
-
Rashmi,
I tried copying msrdo20.dll. But it didn't help. Any other idea?
Thank you,
Laxmi
-
Try registering it. Go to Dos Prompt, type system directory path and then regsvr32.exe and then again system directory path and then MSRDO20.DLL
Eg:if suppose ur system directory is in c:\ and (ur OS is 95), then
c:\windows\system\regsvr32.exe c:\windows\sytem\MSRDO20.DLL
If this fails, then I have no answers....
-
Rashmi,
I tried that too. It didn't help.
Thanks for your help. I will let you know when I succed what's the problem.
Thank you,
Laxmi
-
Check the existance (and version) of any .OCX, .DLL etc etc files that your program uses - if this error pops up as soon as the program runs check for any components you have sitting on the MDI form (eg Crystal Reports, CommonDialog etc) as these are the usual culprit.
------------------
Mark "Buzby" Beeton
VB Developer
[email protected]
-
Some ActiveX component or control may be missing or is not registered properly. U can register an activeX component using regsvr32.exe.
Best thing is to identify for which component its giving the error and then delete and copy it from the other machine, where it is working.
-
Buzby,
Thanks for your response.
This is what I have in my declarations.
Public g_db As Database
Public g_cn As rdoConnection
Public g_en As rdoEnvironment
and
This is how I am giving connection.
It's giving the error when it hits first line below.
--> Set g_en = rdoEnvironments(0)
Set g_cn = g_en.OpenConnection( _
dsName:="ORACLE32", _
Prompt:=rdDriverNoPrompt, _
ReadOnly:=False, _
Connect:="uid=ideal;pwd=ideal;DBQ=prod")
I appreciate any help
Laxmi