Hello here is my problem.

A program (written by someone no longer employed here) is running properly on 2 machines running 98 SE. I have tried to transfer the program to a machine running XP and have had numberous problems. I believe the program was written under VB 5.0, but I'm not sure. I will tell you the steps I have taken to this point and maybe that will help.

1. Transfer all files associated with the program to the XP Machine.
2. Error loading vb40016.dll (I installed the VB 4.0 runtime files for 16-bit applications).
3. Error loading comdlg16.dll (downloaded this file from the web and placed it in the windows/system folder.
4. Cannot find oc25.ocx (downloaded this file and placed in windows/system also)

5. Runtime error 424 (Object required)

After extensive research I found out that the above files (and all other .ocx) files need to be registered within windows. I found the different objects by opening the main .vbp file in notepad and got the following:

Form=LIMSW.FRM
Form=STD.FRM
Form=LABELPRI.FRM
Form=ABOUTFOR.FRM
Form=FRMWAIT.FRM
Form=FRMLIBED.FRM
Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.0#0; COMDLG16.OCX
Object={BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.0#0; TABCTL16.OCX
Object={FAEEE763-117E-101B-8933-08002B2F4F5A}#1.0#0; DBLIST16.OCX
Object={00028C01-0000-0000-0000-000000000046}#1.0#0; DBGRID16.OCX
Reference=*\G{BEF6E001-A874-101A-8BBA-00AA00300CAB}#1.0#0#C:\WINDOWS\SYSTEM\OC25.DLL#Sta ndard OLE Types
Object={648A5603-2C6E-101B-82B6-000000000014}#1.0#0; MSCOMM16.OCX
Reference=*\G{00025E01-0000-0000-C000-000000000046}#2.5#0#C:\WINDOWS\SYSTEM\DAO2516.DLL# Microsoft DAO 2.5 Object Library
ProjWinSize=21,446,194,185
ProjWinShow=2
IconForm="WeighForm"
HelpFile=""
Title="LIMSW"
ExeName="NRLIMSW.EXE"
Name="Project1"
HelpContextID="0"
StartMode=0
VersionCompatible="0"
MajorVer=1
MinorVer=3
RevisionVer=98
AutoIncrementVer=1
ServerSupportFiles=0
VersionCompanyName="A.S. McCreath & Sons, Inc."

I verified that all the files were present in C:\Windows\System

I then went to Start -> Run and typed in the following "regsvr16.exe comdlg16.ocx" (without the quotes). I did this for all of the .ocx and .dll files listed in the information above. When I got to dbgrid16.ocx, I received the following message "LoadLibrary("DBGRID16.ocx") Failed. I skipped that one and proceeded to register the others. I then tried to reopen the program and received a new error message "Runtime error 525 Data Access Error".
I am guessing that at the point of the error the program is trying to communicate with our Access 2.0 Database.

Any thoughts???

Please be warned I have virtually no knowledge of VB.


Thank You
Nathan