Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.misc > #191
| From | Helmut_Meukel <Helmut_Meukel@bn-hof.invalid> |
|---|---|
| Newsgroups | alt.comp.lang.vb, alt.comp.lang.visualbasic, comp.lang.basic.misc, comp.lang.basic.visual.misc, microsoft.public.dotnet.languages.vb, microsoft.public.dotnet.languages.vb.upgrade |
| Subject | Re: Upgrading older VB programs (sans Project Files) to VB.NET |
| Date | 2012-01-05 22:32 +0100 |
| Organization | HM - Soft Hof |
| Message-ID | <je54t8$kbc$1@dont-email.me> (permalink) |
| References | <je49ej$37u$2@dont-email.me> |
Cross-posted to 6 groups.
Ubiquitous stellte die Frage: > I have some old Visual Basic programs I'd like to upgrade to .NET because > they currently require obsolete drivers like "VBRUN300.DLL" to run. I > attempted to use the upgrade wizard but it appears it requires a project > file and I only have .FRM, .FRX, and Make files, like this one: > >> VERSION 2.00 >> Begin Form Form1 [...] >> End >> >> Sub Command1_Click () >> >> list1.Clear >> nsucc = 0 >> For i = 1 To Val(text1.Text) >> v = 0 >> reloop: >> v = v + Int(Rnd(6) * 6 + 1) >> If v Mod 6 = 0 Then GoTo reloop >> If v >= Val(text2.Text) Then nsucc = nsucc + 1 >> list1.AddItem Format$(v, "00") >> Next >> text3.Text = Format$(nsucc) >> >> End Sub > > I have a feeling these pre-date VB 6 but wondered if there is a way to > systematically perform the upgrade without a project file instead of > making them from scratch. This is a 16-bit VB3 project. It's project file is the .MAK file. You are lucky, because the .FRM and .BAS files were saved as text (default was Binary). But you still must first upgrade the projects to 32-bit (VB5 or VB6), then you can try the upgrade wizard to .net. Any as binaries saved VB3 projects can't be opened by VB5/6, you must open those project again in VB3 and select the option "save as text" before saving. Having said all this, I think it's better to begin all these old programs from scratch in VB.NET. If it's a small program, it's still probably faster. If it's a large project, the upgrade wizzard will produce code that needs much work to get it running and the code will still be a mess. Helmut.
Back to comp.lang.basic.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Upgrading older VB programs (sans Project Files) to VB.NET Ubiquitous <weberm@polaris.net> - 2012-01-04 18:23 -0500
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Mayayana" <mayayana@invalid.nospam> - 2012-01-05 09:25 -0500
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Thorsten Albers" <gudea@gmx.de> - 2012-01-05 16:33 +0000
Re: Upgrading older VB programs (sans Project Files) to VB.NET Helmut_Meukel <Helmut_Meukel@bn-hof.invalid> - 2012-01-05 22:32 +0100
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Auric__" <not.my.real@email.address> - 2012-01-06 02:50 +0000
Re: Upgrading older VB programs (sans Project Files) to VB.NET Tony Toews <ttoews@telusplanet.net> - 2012-01-09 20:29 -0700
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Mayayana" <mayayana@invalid.nospam> - 2012-01-10 09:22 -0500
Re: Upgrading older VB programs (sans Project Files) to VB.NET Tom Shelton <tom_shelton@comcast.invalid> - 2012-01-10 10:14 -0700
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Mayayana" <mayayana@invalid.nospam> - 2012-01-10 17:04 -0500
Re: Upgrading older VB programs (sans Project Files) to VB.NET Schmidt <sss@online.de> - 2012-01-11 21:02 +0100
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Henning" <computer_hero@coldmail.com> - 2012-01-12 15:33 +0100
Re: Upgrading older VB programs (sans Project Files) to VB.NET Tom Shelton <tom_shelton@comcast.invalid> - 2012-01-12 09:34 -0700
Re: Upgrading older VB programs (sans Project Files) to VB.NET Schmidt <sss@online.de> - 2012-01-13 20:17 +0100
Re: Upgrading older VB programs (sans Project Files) to VB.NET Tom Shelton <tom_shelton@comcast.invalid> - 2012-01-13 13:22 -0700
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Mayayana" <mayayana@invalid.nospam> - 2012-01-13 16:07 -0500
Re: Upgrading older VB programs (sans Project Files) to VB.NET Tom Shelton <tom_shelton@comcast.invalid> - 2012-01-13 14:14 -0700
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Mayayana" <mayayana@invalid.nospam> - 2012-01-13 20:58 -0500
Re: Upgrading older VB programs (sans Project Files) to VB.NET Tony Toews <ttoews@telusplanet.net> - 2012-01-19 19:10 -0700
Re: Upgrading older VB programs (sans Project Files) to VB.NET Schmidt <sss@online.de> - 2012-01-14 00:12 +0100
Re: Upgrading older VB programs (sans Project Files) to VB.NET "Henning" <computer_hero@coldmail.com> - 2012-01-14 00:24 +0100
Re: Upgrading older VB programs (sans Project Files) to VB.NET Schmidt <sss@online.de> - 2012-01-14 00:58 +0100
csiph-web