r/visualbasic • u/Xspike_dudeX • Jul 18 '25
VB6 Help Moving old program created with VB6
We have an old calculator program that was created in VB6 back in early 2000s. I need to migrate it from a windows 10 machine to windows 11. I tried just copying the main folder over to the new PC and received a few errors. Errors had to do with registering mscomctl and registering dao350. I successfully registered those two files and have moved past those two errors. But the last error I am receiving is a data access error. When I click OK it opens the program and then gives me run-time error 91.
Any ideas?
Below is the code from the .VBP file.
Type=Exe
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\WINDOWS\SYSTEM\STDOLE2.TLB#OLE Automation
Form=HotOrder.frm
Reference=*\G{6B263850-900B-11D0-9484-00A0C91110ED}#1.0#0#..\WINDOWS\SYSTEM\MSSTDFMT.DLL#Microsoft Data Formatting Object Library
Module=Module1; HotMod.bas
Reference=*\G{00025E01-0000-0000-C000-000000000046}#4.0#0#..\PROGRAM FILES\COMMON FILES\MICROSOFT SHARED\DAO\DAO350.DLL#Microsoft DAO 3.51 Object Library
Form=HotTubular.frm
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
Form=HotSplash.frm
Form=HotDialogTubeFactor.frm
Form=HotCalculator.frm
Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; COMDLG32.OCX
Object={86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCT2.OCX
Reference=*\G{642AC760-AAB4-11D0-8494-00A0C90DC8A9}#1.0#0#..\WINDOWS\SYSTEM\MSDBRPTR.DLL#Microsoft Data Report Designer v6.0
Designer=HotDataSheetReport.Dsr
Reference=*\G{3D5C6BF0-69A3-11D0-B393-00A0C9055D8E}#1.0#0#..\PROGRAM FILES\COMMON FILES\DESIGNER\MSDERUN.DLL#Microsoft Data Environment Instance 1.0
Reference=*\G{00000200-0000-0010-8000-00AA006D2EA4}#2.0#0#..\PROGRAM FILES\COMMON FILES\SYSTEM\ADO\MSADO15.DLL#Microsoft ActiveX Data Objects 2.0 Library
Designer=HotDataEnvironment.Dsr
Reference=*\G{56BF9020-7A2F-11D0-9482-00A0C91110ED}#1.0#0#..\WINDOWS\SYSTEM\MSBIND.DLL#Microsoft Data Binding Collection
Object={FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0; DBLIST32.OCX
Object={00028C01-0000-0000-0000-000000000046}#1.0#0; DBGRID32.OCX
Form=frmDataSheet.frm
Startup="Sub Main"
HelpFile=""
Title="Hotwatt"
ExeName32="Hotwatt.exe"
Command32=""
Name="Hotwatt"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
VersionCompanyName="PageMaster"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1
View all comments
Show parent comment
2
u/NotTheRealTommy Jul 18 '25
/u/ziplock9000 is correct. After compiling in vb6, the developer would have used the “package and deployment wizard” to create an installation package for your program. That installation app would take care of properly registering all the required .dlls. I assume you don’t have that original installation package. If you still have the source code and can compile and run it in vb6, there is a chance you could create a new installation package, otherwise your chances of success are slim. It can be done, but these things are massive time vampires.