Overclock.net banner

Need to rewrite VB6 application

2076 Views 12 Replies 4 Participants Last post by  legoman786
Hey guys I've decided to give programming a go. Although, the starter applications are very basic and get you on track pretty fast, I want more of a challenge. My personality denies me anything that takes less than a third of a brain stem to do.


So... I've decided to rewrite my dads application from VB6 (I know, ancient) to VB.net, C, or C++. I can probably get Java from a friend, but I'd like to work with I got, for now.

With the internet and several eBooks at my disposal, I'm pretty sure I can get to coding by myself pretty fast. I want to know, from experienced programmers, What's the best route to begin rewriting from VB6 to a newer language?
See less See more
1 - 13 of 13 Posts
Load the project up in VB.NET and build it?
WinForms are probably the easiest to start with. VB.net or C#. The Java Swing library stinks. You can get express versions of Visual Studio to match your needs.
2
Quote:

Originally Posted by error10 View Post
Load the project up in VB.NET and build it?
Well the thing is that VB.net messed up a lot of things. Though, I'm no expert, a lot of values were changed and I can't even get it to run through VS2008. I'll try to run it again and share the output.

Code:

Code:
------ Build started: Project: VSA, Configuration: Debug Any CPU ------
C:WindowsMicrosoft.NETFrameworkv3.5Vbc.exe /noconfig /imports:Microsoft.VisualBasic,Microsoft.VisualBasic.Compatibility,System,System.Collections,System.Data,System.Diagnostics,System.Drawing,System.Windows.Forms /nowarn:42016,42017,42018,42019,42032 /platform:x86 /rootnamespace:VSA /doc:objDebugVSA.xml /define:"CONFIG=\\"Debug\\",DEBUG=-1,TRACE=-1,_MyType=\\"WindowsForms\\",PLATFORM=\\"AnyCPU\\",Win32=True" /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727Microsoft.VisualBasic.Compatibility.Data.dll,C:WindowsMicrosoft.NETFrameworkv2.0.50727Microsoft.VisualBasic.Compatibility.dll,"C:Program Files (x86)Microsoft Visual Basic 2005 Power Packs2.0LibrariesMicrosoft.VisualBasic.PowerPacks.dll",C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Data.dll,C:WindowsMicrosoft.NETFrameworkv2.0.50727System.dll,C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Drawing.dll,C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Windows.Forms.dll,C:WindowsMicrosoft.NETFrameworkv2.0.50727System.XML.dll,C:WindowsassemblyGACADODB7.0.3300.0__b03f5f7f11d50a3aADODB.dll,C:WindowsassemblyGACMicrosoft.Office.Interop.Word12.0.0.0__71e9bce111e9429cMicrosoft.Office.Interop.Word.dll,C:WindowsassemblyGACMicrosoft.StdFormat7.0.3300.0__b03f5f7f11d50a3aMicrosoft.StdFormat.dll,C:WindowsassemblyGACMicrosoft.Vbe.Interop12.0.0.0__71e9bce111e9429cMicrosoft.Vbe.Interop.dll,C:WindowsassemblyGACMSDATASRC7.0.3300.0__b03f5f7f11d50a3aMSDATASRC.dll,C:WindowsassemblyGACoffice12.0.0.0__71e9bce111e9429coffice.dll,C:WindowsassemblyGACstdole7.0.3300.0__b03f5f7f11d50a3astdole.dll,objDebugInterop.DataFormWizard6.dll,objDebugInterop.MSComCtl2.dll,objDebugInterop.MSDataReportLib.dll,objDebugInterop.MSFlexGridLib.dll,objDebugInterop.MSFlexGridWizard.dll,objDebugInterop.SubWiz.dll,objDebugInterop.VBIDE.dll,objDebugAxInterop.MSComCtl2.dll,objDebugAxInterop.MSFlexGridLib.dll,objDebugAxInterop.MSFlexGridWizard.dll /main:VSA.S1Form /debug+ /debug:full /out:objDebugVSA.exe /resource:objDebugVSA.A2DPO.resources /resource:objDebugVSA.A2DPOP1.resources /resource:objDebugVSA.AddInv.resources /resource:objDebugVSA.AddrBook.resources /resource:objDebugVSA.AddrBookP1.resources /resource:objDebugVSA.AddrBookP1P1.resources /resource:objDebugVSA.AddrBookP1P2.resources /resource:objDebugVSA.ADEEmployee.resources /resource:objDebugVSA.ADEEmployeeP1.resources /resource:objDebugVSA.ADEFIGWCo.resources /resource:objDebugVSA.ADEVCodes.resources /resource:objDebugVSA.AECoInfo.resources /resource:objDebugVSA.AEDVendor.resources /resource:objDebugVSA.AEInv.resources /resource:objDebugVSA.AEMVDAZ.resources /resource:objDebugVSA.AssignAuths.resources /resource:objDebugVSA.AuthLtrHist.resources /resource:objDebugVSA.AuthLtrNM.resources /resource:objDebugVSA.ChgDBPath.resources /resource:objDebugVSA.ChkAuth.resources /resource:objDebugVSA.ComRpt.resources /resource:objDebugVSA.DelPO.resources /resource:objDebugVSA.EForm.resources /resource:objDebugVSA.EODRpt.resources /resource:objDebugVSA.EOMRpt.resources /resource:objDebugVSA.FormAbout.resources /resource:objDebugVSA.FormLogin.resources /resource:objDebugVSA.HUHVeh.resources /resource:objDebugVSA.InvList.resources /resource:objDebugVSA.PmtDue.resources /resource:objDebugVSA.PmtHist.resources /resource:objDebugVSA.PrtCorPr.resources /resource:objDebugVSA.PrtSetUp.resources /resource:objDebugVSA.QPCalc.resources /resource:objDebugVSA.S1Form.resources /resource:objDebugVSA.S1P2Form.resources /resource:objDebugVSA.S4Form.resources /resource:objDebugVSA.S4P1Form.resources /resource:objDebugVSA.S4P2Form.resources /resource:objDebugVSA.S5Form.resources /resource:objDebugVSA.S5T0P1.resources /resource:objDebugVSA.S5T0P1P1.resources /resource:objDebugVSA.S5T0P2.resources /resource:objDebugVSA.S5T0P2P2.resources /resource:objDebugVSA.S5T1P1.resources /resource:objDebugVSA.S5T1P1P1.resources /resource:objDebugVSA.S5T2P1.resources /resource:objDebugVSA.S5T2P1P1.resources /resource:objDebugVSA.S5T2P2.resources /resource:objDebugVSA.S5T2P2P1.resources /resource:objDebugVSA.S5T3P1.resources /resource:objDebugVSA.S5T3P1P1.resources /resource:objDebugVSA.S5T3P2.resources /resource:objDebugVSA.S5T3P2P1.resources /resource:objDebugVSA.S5T6P1.resources /resource:objDebugVSA.S5T6P2.resources /resource:objDebugVSA.S5T6P3.resources /resource:objDebugVSA.S5T6P4.resources /resource:objDebugVSA.S5T6P5.resources /resource:objDebugVSA.S5T6P6.resources /resource:objDebugVSA.S5T8P1.resources /resource:objDebugVSA.S6Form.resources /resource:objDebugVSA.S6Pop1.resources /resource:objDebugVSA.SysAlerts.resources /resource:objDebugVSA.ToDoLst.resources /resource:objDebugVSA.ToDoP1.resources /resource:objDebugVSA.VAcctMain.resources /resource:objDebugVSA.VAuth.resources /resource:objDebugVSA.VHUHHist.resources /resource:objDebugVSA.VndrPmt.resources /resource:objDebugVSA.WhosPOA.resources /target:winexe A2DPO.Designer.vb A2DPO.vb A2DPOP1.Designer.vb A2DPOP1.vb AddInv.Designer.vb AddInv.vb AddrBook.Designer.vb AddrBook.vb AddrBookP1.Designer.vb AddrBookP1.vb AddrBookP1P1.Designer.vb AddrBookP1P1.vb AddrBookP1P2.Designer.vb AddrBookP1P2.vb ADEEmployee.Designer.vb ADEEmployee.vb ADEEmployeeP1.Designer.vb ADEEmployeeP1.vb ADEFIGWCo.Designer.vb ADEFIGWCo.vb ADEVCodes.Designer.vb ADEVCodes.vb AECoInfo.Designer.vb AECoInfo.vb AEDVendor.Designer.vb AEDVendor.vb AEInv.Designer.vb AEInv.vb AEMVDAZ.Designer.vb AEMVDAZ.vb Alerts.vb AssemblyInfo.vb AssignAuths.Designer.vb AssignAuths.vb AuthLtrHist.Designer.vb AuthLtrHist.vb AuthLtrNM.Designer.vb AuthLtrNM.vb AxDTPickerArray.vb ChgDBPath.Designer.vb ChgDBPath.vb ChkAuth.Designer.vb ChkAuth.vb ComRpt.Designer.vb ComRpt.vb DelPO.Designer.vb DelPO.vb EForm.Designer.vb EForm.vb EODRpt.Designer.vb EODRpt.vb EOMRpt.Designer.vb EOMRpt.vb FormAbout.Designer.vb FormAbout.vb FormLogin.Designer.vb FormLogin.vb HUHVeh.Designer.vb HUHVeh.vb InvList.Designer.vb InvList.vb LineShapeArray.vb Main.vb MVDForms.vb PmtDue.Designer.vb PmtDue.vb PmtHist.Designer.vb PmtHist.vb PromNote.vb PrtCorPr.Designer.vb PrtCorPr.vb PrtSetUp.Designer.vb PrtSetUp.vb QPCalc.Designer.vb QPCalc.vb S1Form.Designer.vb S1Form.vb S1P2Form.Designer.vb S1P2Form.vb S4Form.Designer.vb S4Form.vb S4P1Form.Designer.vb S4P1Form.vb S4P2Form.Designer.vb S4P2Form.vb S5Form.Designer.vb S5Form.vb S5T0P1.Designer.vb S5T0P1.vb S5T0P1P1.Designer.vb S5T0P1P1.vb S5T0P2.Designer.vb S5T0P2.vb S5T0P2P2.Designer.vb S5T0P2P2.vb S5T1P1.Designer.vb S5T1P1.vb S5T1P1P1.Designer.vb S5T1P1P1.vb S5T2P1.Designer.vb S5T2P1.vb S5T2P1P1.Designer.vb S5T2P1P1.vb S5T2P2.Designer.vb S5T2P2.vb S5T2P2P1.Designer.vb S5T2P2P1.vb S5T3P1.Designer.vb S5T3P1.vb S5T3P1P1.Designer.vb S5T3P1P1.vb S5T3P2.Designer.vb S5T3P2.vb S5T3P2P1.Designer.vb S5T3P2P1.vb S5T6P1.Designer.vb S5T6P1.vb S5T6P2.Designer.vb S5T6P2.vb S5T6P3.Designer.vb S5T6P3.vb S5T6P4.Designer.vb S5T6P4.vb S5T6P5.Designer.vb S5T6P5.vb S5T6P6.Designer.vb S5T6P6.vb S5T8P1.Designer.vb S5T8P1.vb S6Form.Designer.vb S6Form.vb S6Pop1.Designer.vb S6Pop1.vb SysAlerts.Designer.vb SysAlerts.vb ToDoLst.Designer.vb ToDoLst.vb ToDoP1.Designer.vb ToDoP1.vb UpgradeSupport.vb USBDefs.vb USBIO.vb USBReadSwiper.vb VAcctMain.Designer.vb VAcctMain.vb VAuth.Designer.vb VAuth.vb VHUHHist.Designer.vb VHUHHist.vb VndrPmt.Designer.vb VndrPmt.vb WhosPOA.Designer.vb WhosPOA.vb
E:VSA_TestVSA.NETADEEmployee.vb(10) : warning BC42024: Unused local variable: 'itmX'.
E:VSA_TestVSA.NETADEEmployee.vb(29) : error BC30465: 'Imports' statements must precede any declarations.
E:VSA_TestVSA.NETADEEmployee.vb(30) : error BC30465: 'Imports' statements must precede any declarations.
E:VSA_TestVSA.NETADEEmployee.vb(114) : error BC30451: Name 'SortListView' is not declared.
E:VSA_TestVSA.NETADEEmployee.vb(163) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETADEEmployee.vb(164) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETADEEmployee.vb(165) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETADEEmployee.vb(232) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETADEEmployee.vb(233) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETADEEmployee.vb(234) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETADEEmployee.vb(382) : error BC30456: 'SortKey' is not a member of 'System.Windows.Forms.ListView'.
E:VSA_TestVSA.NETADEEmployee.vb(386) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETADEEmployee.vb(389) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETADEEmployee.vb(392) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETADEEmployee.vb(395) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAECoInfo.vb(21) : warning BC42024: Unused local variable: 'Result'.
E:VSA_TestVSA.NETAECoInfo.vb(356) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAECoInfo.vb(357) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAECoInfo.vb(358) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAEDVendor.vb(133) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAEDVendor.vb(134) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAEDVendor.vb(135) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAEDVendor.vb(371) : warning BC42024: Unused local variable: 'Strg'.
E:VSA_TestVSA.NETAEDVendor.vb(494) : warning BC42024: Unused local variable: 'Strg'.
E:VSA_TestVSA.NETAEDVendor.vb(589) : warning BC42024: Unused local variable: 'I'.
E:VSA_TestVSA.NETAddrBook.vb(29) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAddrBook.vb(32) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAddrBook.vb(106) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAddrBook.vb(107) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAddrBook.vb(108) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAddrBook.vb(213) : error BC30456: 'SortKey' is not a member of 'System.Windows.Forms.ListView'.
E:VSA_TestVSA.NETAddrBook.vb(217) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAddrBook.vb(221) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAddrBook.vb(224) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAddrBook.vb(227) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAddrBook.vb(233) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAddrBook.vb(241) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETAddrBook.vb(310) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAddrBook.vb(311) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAddrBook.vb(312) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETAddrBook.vb(462) : error BC30456: 'SortKey' is not a member of 'System.Windows.Forms.ListView'.
E:VSA_TestVSA.NETAddrBookP1.vb(253) : warning BC42024: Unused local variable: 'Strg'.
E:VSA_TestVSA.NETAddrBookP1.vb(417) : warning BC42024: Unused local variable: 'Strg'.
E:VSA_TestVSA.NETAddrBookP1.vb(417) : warning BC42024: Unused local variable: 'Fn'.
E:VSA_TestVSA.NETDelPO.vb(49) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETDelPO.vb(50) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETDelPO.vb(51) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETDelPO.vb(244) : warning BC42104: Variable 'rs1' is used before it has been assigned a value. A null reference exception could result at runtime.
E:VSA_TestVSA.NETHUHVeh.vb(280) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETHUHVeh.vb(281) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETHUHVeh.vb(282) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETHUHVeh.vb(408) : warning BC42024: Unused local variable: 'Lchg'.
E:VSA_TestVSA.NETHUHVeh.vb(633) : warning BC42024: Unused local variable: 'Strg'.
E:VSA_TestVSA.NETHUHVeh.vb(756) : warning BC42024: Unused local variable: 'Strg'.
E:VSA_TestVSA.NETHUHVeh.vb(757) : warning BC42024: Unused local variable: 'I'.
E:VSA_TestVSA.NETHUHVeh.vb(1006) : error BC30311: Value of type 'String' cannot be converted to 'System.Windows.Forms.Control'.
E:VSA_TestVSA.NETHUHVeh.vb(1006) : error BC30057: Too many arguments to 'Public Overridable Sub Add(value As System.Windows.Forms.Control)'.
E:VSA_TestVSA.NETPmtDue.vb(40) : error BC30456: 'SortKey' is not a member of 'System.Windows.Forms.ListView'.
E:VSA_TestVSA.NETPmtDue.vb(44) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(47) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(50) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(53) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(56) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(91) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETPmtDue.vb(92) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETPmtDue.vb(93) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETPmtDue.vb(414) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETPmtDue.vb(415) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETPmtDue.vb(416) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETPmtDue.vb(453) : error BC30456: 'SortKey' is not a member of 'System.Windows.Forms.ListView'.
E:VSA_TestVSA.NETPmtDue.vb(457) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(461) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(464) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(467) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(473) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETPmtDue.vb(481) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETQPCalc.vb(168) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETQPCalc.vb(169) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETQPCalc.vb(170) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS1P2Form.vb(10) : warning BC42024: Unused local variable: 'itmX'.
E:VSA_TestVSA.NETS1P2Form.vb(65) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS1P2Form.vb(66) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS1P2Form.vb(67) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS1P2Form.vb(148) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS1P2Form.vb(149) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS1P2Form.vb(150) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS1P2Form.vb(271) : warning BC42104: Variable 'Strg' is used before it has been assigned a value. A null reference exception could result at runtime.
E:VSA_TestVSA.NETS1P2Form.vb(404) : warning BC42104: Variable 'Strg' is used before it has been assigned a value. A null reference exception could result at runtime.
E:VSA_TestVSA.NETS4P2Form.vb(12) : warning BC42024: Unused local variable: 'Flag'.
E:VSA_TestVSA.NETS4P2Form.vb(223) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS4P2Form.vb(224) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS4P2Form.vb(225) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS4P2Form.vb(490) : warning BC42024: Unused local variable: 'Ind1'.
E:VSA_TestVSA.NETS4P2Form.vb(490) : warning BC42024: Unused local variable: 'Ind'.
E:VSA_TestVSA.NETS4P2Form.vb(490) : warning BC42024: Unused local variable: 'I'.
E:VSA_TestVSA.NETS4P2Form.vb(491) : warning BC42024: Unused local variable: 'Strg'.
E:VSA_TestVSA.NETS4P2Form.vb(561) : warning BC42104: Variable 'Descript' is used before it has been assigned a value. A null reference exception could result at runtime.
E:VSA_TestVSA.NETS5T0P2P2.vb(65) : warning BC42024: Unused local variable: 'Result'.
E:VSA_TestVSA.NETS5T0P2P2.vb(85) : warning BC42024: Unused local variable: 'J'.
E:VSA_TestVSA.NETS5T0P2P2.vb(93) : warning BC42024: Unused local variable: 'J'.
E:VSA_TestVSA.NETS5T0P2P2.vb(107) : warning BC42024: Unused local variable: 'Day_diff'.
E:VSA_TestVSA.NETS5T0P2P2.vb(169) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T0P2P2.vb(170) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T0P2P2.vb(171) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T0P2P2.vb(322) : warning BC42024: Unused local variable: 'I'.
E:VSA_TestVSA.NETS5T2P1P1.vb(110) : warning BC42024: Unused local variable: 'Result'.
E:VSA_TestVSA.NETS5T2P1P1.vb(234) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T2P1P1.vb(235) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T2P1P1.vb(236) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T3P2.vb(36) : error BC30456: 'SortKey' is not a member of 'System.Windows.Forms.ListView'.
E:VSA_TestVSA.NETS5T3P2.vb(40) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETS5T3P2.vb(44) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETS5T3P2.vb(47) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETS5T3P2.vb(50) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETS5T3P2.vb(56) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETS5T3P2.vb(64) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETS5T3P2.vb(111) : warning BC42024: Unused local variable: 'sSQL'.
E:VSA_TestVSA.NETS5T3P2.vb(112) : warning BC42024: Unused local variable: 'cn'.
E:VSA_TestVSA.NETS5T3P2.vb(113) : warning BC42024: Unused local variable: 'rs'.
E:VSA_TestVSA.NETS5T3P2.vb(141) : warning BC42024: Unused local variable: 'I'.
E:VSA_TestVSA.NETS5T3P2.vb(351) : error BC30456: 'SortKey' is not a member of 'System.Windows.Forms.ListView'.
E:VSA_TestVSA.NETS5T3P2.vb(355) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETS5T6P1.vb(120) : warning BC42024: Unused local variable: 'Lchg'.
E:VSA_TestVSA.NETS5T6P1.vb(161) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T6P1.vb(162) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T6P1.vb(163) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T6P1.vb(215) : error BC30491: Expression does not produce a value.
E:VSA_TestVSA.NETS5T6P1.vb(215) : error BC30519: Overload resolution failed because no accessible 'Item' can be called without a narrowing conversion:
    'Public Overridable ReadOnly Default Property Item(key As String) As System.Windows.Forms.ListViewItem': Argument matching parameter 'key' narrows from 'Double' to 'String'.
    'Public Overridable Default Property Item(index As Integer) As System.Windows.Forms.ListViewItem': Argument matching parameter 'index' narrows from 'Double' to 'Integer'.
E:VSA_TestVSA.NETS5T6P1.vb(516) : warning BC42104: Variable 'Nndt' is used before it has been assigned a value. A null reference exception could result at runtime.
E:VSA_TestVSA.NETS5T6P1.vb(639) : warning BC42024: Unused local variable: 'Toadd'.
E:VSA_TestVSA.NETS5T6P2.vb(43) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T6P2.vb(44) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS5T6P2.vb(45) : error BC30456: 'Timer3' is not a member of 'VSA.S1Form'.
E:VSA_TestVSA.NETS6Form.vb(36) : error BC30456: 'SortKey' is not a member of 'System.Windows.Forms.ListView'.
E:VSA_TestVSA.NETS6Form.vb(40) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
E:VSA_TestVSA.NETS6Form.vb(43) : error BC30456: 'Icon' is not a member of 'System.Windows.Forms.ColumnHeader'.
vbc : error BC30041: Maximum number of errors has been exceeded.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
That's where I need to get started


Also, this will be a major help to my dad, who cannot dedicate the time to do this himself.
See less See more
Automatic VB6 -> .Net conversion almost always end in massive failure. What you really need to do is document what it needs to do (if that task isn't done already) and write it from scratch in .Net.
So... can I keep the GUI from the VB6 application and just redo the code?
bump
Quote:

Originally Posted by legoman786 View Post
So... can I keep the GUI from the VB6 application and just redo the code?
Not likely. You probably *can* but *should* is the real question. IMHO anything more than a hello world needs a rewrite from VB6->.NET.

Other than that, load it into visual studio and track down each bug. Often times 1 mistake can generate numerous errors
See less See more
Well, the thing is that I can't even run it through Visual Studio.

I can run VB6 and VS2008 side by side, and recreate the whole thing.
Quote:

Originally Posted by legoman786 View Post
Well, the thing is that I can't even run it through Visual Studio.

I can run VB6 and VS2008 side by side, and recreate the whole thing.

not run it, "convert" it and correct the errors.
See less See more
Alright, this will be my next project, albeit, a long one. :\\

Another quick question, will it default the code to .Net 2.0 or do I have to work some option in VS2008 for that?
vs2008 will default to v3.5. Note that v2.0 and up all run on the same compiler. 3.0 and 3.5 are just added features to v2.0. So if you don't use WPF, WCF, other 3.0-ish stuff, it's a 2.0 app. There's an option under the solution/project properties to target a specific framework.
  • Rep+
Reactions: 1
Ok, thank you
1 - 13 of 13 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top