Windows 7 Forums


Reply
Thread Tools

VisualBasic 6 program cannot run on Windows 7

 
 
untisump
Guest
Posts: n/a
Thanked:
 
      02-15-2011
I have a Visual Basic 6 program and a new pc with Windows 7 64 bit Home
Premium.
Program reads data from DBF's and exports to text file.

When I try to setup or run this simple program on win7 I get errors and the
program will not run.

Setup fails = dll's are not registered.
Register dll's by hand (regsvr32) is not successful.
XP mode is not possible on Home Premium.

Googled alot with no success.

Please if any knows a solution to this or will I have to recode all VB6
programs to C# or similar?

TIA


 
Reply With Quote
 
 
 
 
Paul
Guest
Posts: n/a
Thanked:
 
      02-15-2011
untisump wrote:
> I have a Visual Basic 6 program and a new pc with Windows 7 64 bit Home
> Premium.
> Program reads data from DBF's and exports to text file.
>
> When I try to setup or run this simple program on win7 I get errors and the
> program will not run.
>
> Setup fails = dll's are not registered.
> Register dll's by hand (regsvr32) is not successful.
> XP mode is not possible on Home Premium.
>
> Googled alot with no success.
>
> Please if any knows a solution to this or will I have to recode all VB6
> programs to C# or similar?
>
> TIA
>
>


There are some ideas here.

"Installing VB6 Applications on VISTA or Windows 7"

http://www.daniweb.com/code/snippet313435.html

Paul
 
Reply With Quote
 
Sir_George
Guest
Posts: n/a
Thanked:
 
      02-15-2011
untisump wrote:

> I have a Visual Basic 6 program and a new pc with Windows 7 64 bit
> Home Premium. Program reads data from DBF's and exports to text file.
>
> When I try to setup or run this simple program on win7 I get errors
> and the program will not run.
>
> Setup fails = dll's are not registered.
> Register dll's by hand (regsvr32) is not successful.
> XP mode is not possible on Home Premium.
>
> Googled alot with no success.
>
> Please if any knows a solution to this or will I have to recode all
> VB6 programs to C# or similar?
>
> TIA


The program you are trying to install is not compatible with Windows 7,
64 bit, edition. You need to run the program in XP mode, which is not
available in Windows 7 Home Premium. You can upgrade your Win 7 to one
of the following; Professional, Ultimate or Enterprise. Additionally,
your system requirements need to be at least; 2GB system RAM and a CPU
that supports chip-level virtualization.

HTH

--
Sir_George
 
Reply With Quote
 
untisump
Guest
Posts: n/a
Thanked:
 
      02-15-2011
I shall answer my own question now, and to all others:

The trick is:
1. change system date to US/UK format
2. make setup package with package and deployment wizard
3. on win7 (any) run setup as administrator

Problem solved (at least in my case).

cheers


 
Reply With Quote
 
Steel
Guest
Posts: n/a
Thanked:
 
      02-15-2011
On 2/15/2011 5:06 AM, untisump wrote:
> I have a Visual Basic 6 program and a new pc with Windows 7 64 bit Home
> Premium.
> Program reads data from DBF's and exports to text file.
>
> When I try to setup or run this simple program on win7 I get errors and the
> program will not run.
>
> Setup fails = dll's are not registered.
> Register dll's by hand (regsvr32) is not successful.
> XP mode is not possible on Home Premium.
>
> Googled alot with no success.
>
> Please if any knows a solution to this or will I have to recode all VB6
> programs to C# or similar?
>
> TIA
>
>


You can try a VB6 to VB.NET conversion utility, which is part of the
VB.NET 2008 Express edition. The conversion is only good for very
simplistic VB6 programs nothing more. VB6 is about a 13 years old legacy
solution. Maybe, it's time for you to rewrite it in VB.NET. The thing
with .NET DLL(s) is that they don't have to be registered with the O/S.
They only need to be located where the hosting .Net assembly is located,
and .NET will find the DLL and use it.
 
Reply With Quote
 
Joe91735
Guest
Posts: n/a
Thanked:
 
      02-16-2011
Did you create an installation - setup program to install the app on the win
7 pc.
I had your same problem and using the setup the program then worked on my
Win 7 PC


Steel" <""Fake99XX1199999fake\"@(Big)(Steel)theXfactor.com wrote:
: On 2/15/2011 5:06 AM, untisump wrote:
:: I have a Visual Basic 6 program and a new pc with Windows 7 64 bit
:: Home Premium.
:: Program reads data from DBF's and exports to text file.
::
:: When I try to setup or run this simple program on win7 I get errors
:: and the program will not run.
::
:: Setup fails = dll's are not registered.
:: Register dll's by hand (regsvr32) is not successful.
:: XP mode is not possible on Home Premium.
::
:: Googled alot with no success.
::
:: Please if any knows a solution to this or will I have to recode all
:: VB6 programs to C# or similar?
::
:: TIA
::
::
:
: You can try a VB6 to VB.NET conversion utility, which is part of the
: VB.NET 2008 Express edition. The conversion is only good for very
: simplistic VB6 programs nothing more. VB6 is about a 13 years old
: legacy solution. Maybe, it's time for you to rewrite it in VB.NET.
: The thing with .NET DLL(s) is that they don't have to be registered
: with the O/S. They only need to be located where the hosting .Net
: assembly is located, and .NET will find the DLL and use it.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Windows 7 davehc Software 0 08-16-2010 02:50 PM
Windows 7 Annoyances Nibiru2012 General Discussion 6 03-17-2010 06:17 PM
Clean Install Windows 7 with Upgrade Media Nibiru2012 Installation, Setup and Updates 0 12-22-2009 07:03 PM
Clean Install Windows 7 with Upgrade Media Nibiru2012 Installation, Setup and Updates 2 12-04-2009 06:30 PM
Important Issues in This Release Candidate of Windows 7 Ian News 0 05-05-2009 03:25 PM


All times are GMT +1. The time now is 12:23 PM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33