Runs on some, doesn't on others 
Author Message
 Runs on some, doesn't on others

I developed an application that could access an *.mdb file. It works
fine in my computer and in other computers. But in some computers, it
doesn't. I am using VB for 16-bit and my application uses one VBX
control, OC25.DLL and VB40016.DLL. The error that I got is Runtime-Error
424: Object required. Can somebody explain to me how to go about this
problem?

Thank you very much.

Lester Cabrera



Sun, 23 Jan 2000 03:00:00 GMT  
 Runs on some, doesn't on others

Lester;

This problem pulled my hair out. I found nothing nowhere to help. After
many hours of work I established it was the DAO drivers that where not
correctly registered on some 16 Bit systems. The only solution was to then
isolate the difference in the registry. What is below is what I came up
with. I have been using it ever since with success. Just copy what's below
to a file - I named it DAO16.reg. Install it like would any other text
file, my suggestion to your app dir so the user may get back to it, if
there registry gets corrupted and install it as follows:

        LaunchApp(WINDIR ^ "Regedit.exe", "/s Ole2.reg DAO16.reg");

good luck

markm

REGEDIT
HKEY_CLASSES_ROOT\DAO.Relation = Microsoft DAO 2.5 Object Library Relation
HKEY_CLASSES_ROOT\DAO.Relation\CLSID =
{00025e8b-0000-0000-c000-000000000046}
HKEY_CLASSES_ROOT\DAO.QueryDef = Microsoft DAO 2.5 Object Library QueryDef
HKEY_CLASSES_ROOT\DAO.QueryDef\CLSID =
{00025e7a-0000-0000-c000-000000000046}
HKEY_CLASSES_ROOT\DAO.User = Microsoft DAO 2.5 Object Library
HKEY_CLASSES_ROOT\DAO.User\CLSID = {00025e68-0000-0000-c000-000000000046}
HKEY_CLASSES_ROOT\DAO.Group = Microsoft DAO 2.5 Object Library Group
HKEY_CLASSES_ROOT\DAO.Group\CLSID = {00025e5f-0000-0000-c000-000000000046}
HKEY_CLASSES_ROOT\DAO.Index = Microsoft DAO 2.5 Object Library Index
HKEY_CLASSES_ROOT\DAO.Index\CLSID = {00025e55-0000-0000-c000-000000000046}
HKEY_CLASSES_ROOT\DAO.Field = Microsoft DAO 2.5 Object Library Field
HKEY_CLASSES_ROOT\DAO.Field\CLSID = {00025e4c-0000-0000-c000-000000000046}
HKEY_CLASSES_ROOT\DAO.TableDef = Microsoft DAO 2.5 Object Library TableDef
HKEY_CLASSES_ROOT\DAO.TableDef\CLSID =
{00025e43-0000-0000-c000-000000000046}
HKEY_CLASSES_ROOT\DAO.PrivateDBEngine\CLSID =
{00025e19-0000-0000-c000-000000000046}
HKEY_CLASSES_ROOT\DAO.DBEngine = Microsoft DAO 2.5 Object Library DBEngine
HKEY_CLASSES_ROOT\DAO.DBEngine\CLSID =
{00025e15-0000-0000-c000-000000000046}

HKEY_CLASSES_ROOT\CLSID\{00025e8b-0000-0000-c000-000000000046} =
DAO.Relation
HKEY_CLASSES_ROOT\CLSID\{00025e8b-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e8b-0000-0000-c000-000000000046}\ProgID =
DAO.Relation
HKEY_CLASSES_ROOT\CLSID\{00025e7a-0000-0000-c000-000000000046} =
DAO.QueryDef
HKEY_CLASSES_ROOT\CLSID\{00025e7a-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e7a-0000-0000-c000-000000000046}\ProgID =
DAO.QueryDef
HKEY_CLASSES_ROOT\CLSID\{00025e68-0000-0000-c000-000000000046} = DAO.User
HKEY_CLASSES_ROOT\CLSID\{00025e68-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e68-0000-0000-c000-000000000046}\ProgID =
DAO.User
HKEY_CLASSES_ROOT\CLSID\{00025e5f-0000-0000-c000-000000000046} = DAO.Group
HKEY_CLASSES_ROOT\CLSID\{00025e5f-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e5f-0000-0000-c000-000000000046}\ProgID =
DAO.Group
HKEY_CLASSES_ROOT\CLSID\{00025e55-0000-0000-c000-000000000046} = DAO.Index
HKEY_CLASSES_ROOT\CLSID\{00025e55-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e55-0000-0000-c000-000000000046}\ProgID =
DAO.Index
HKEY_CLASSES_ROOT\CLSID\{00025e4c-0000-0000-c000-000000000046} = DAO.Field
HKEY_CLASSES_ROOT\CLSID\{00025e4c-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e4c-0000-0000-c000-000000000046}\ProgID =
DAO.Field
HKEY_CLASSES_ROOT\CLSID\{00025e43-0000-0000-c000-000000000046} =
DAO.TableDef
HKEY_CLASSES_ROOT\CLSID\{00025e43-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e43-0000-0000-c000-000000000046}\ProgID =
DAO.TableDef
HKEY_CLASSES_ROOT\CLSID\{00025e19-0000-0000-c000-000000000046} =
DAO.PrivateDBEngine
HKEY_CLASSES_ROOT\CLSID\{00025e19-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e19-0000-0000-c000-000000000046}\ProgID =
DAO.PrivateDBEngine
HKEY_CLASSES_ROOT\CLSID\{00025e15-0000-0000-c000-000000000046} =
DAO.DBEngine
HKEY_CLASSES_ROOT\CLSID\{00025e15-0000-0000-c000-000000000046}\InprocServer
= C:\WINDOWS\SYSTEM\DAO2516.DLL
HKEY_CLASSES_ROOT\CLSID\{00025e15-0000-0000-c000-000000000046}\ProgID =
DAO.DBEngine



Sun, 23 Jan 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Runs on some, doesn't on others

2. fRefreshLinks Doesn't work if path doesn't exist

3. Form_Load() doesn't execute, form doesn't load

4. class doesn't support automation or doesn't support expected interface

5. asyncread doesn't tell if file doesn't exists

6. This code doesn't run when importing it

7. Module displays code, doesn't run

8. If Field IsNull Then Go to Next Field And Run - Doesn't work HELP

9. Report works 1st time run, then doesn't any more

10. VBA doesn't run on my machine

11. Outlook XP - Command Bars doesn't run !!!!!!!

12. Running a macro that doesn't need outlook to be open

 

 
Powered by phpBB® Forum Software