Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Installation / Documentation > VB6 and Vista


Reply
 
Thread Tools Display Modes
  #1  
Old 04-07-2008, 12:33 PM
metev metev is offline
Newcomer
 
Join Date: Aug 2007
Posts: 14
Default VB6 and Vista


Hi there,

I want to install vb6 under vista but it doesnt work. I know that vb6 and vista are not compatible but I still hope there is a solution. Can anyone help me?
Thanks in advance!

Valeri
Reply With Quote
  #2  
Old 04-07-2008, 03:08 PM
JPB JPB is offline
Contributor
 
Join Date: Oct 2004
Posts: 629
Default

VB6 and Vista are "compatible", if you follow these steps:

1) Install VB6 by exploring the CD and then right-click the setup file and select "Run as Administrator".
2) Install the latest Service Pack using "Run as Administrator"
3) After VB6 is installed, right-click on the VB6 icon and click Properties. On the Compatibility tab select "Run this program as an administrator", "Disable Desktop Composition" and "Run this program in compatibility mode for Windows XP (Service Pack 2)". Then click OK.

Once you've completed those steps, VB6 should work under Vista (I am using it on my computer using these settings).
Reply With Quote
  #3  
Old 04-07-2008, 03:49 PM
dilettante's Avatar
dilettante dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,184
Default

Indeed. See Support Statement for Visual Basic 6.0 on Windows®Vista™and Windows®Server 2008™ in regard to the status of VB6.

In particular note that Microsoft has made no promises of IDE support after April 8, 2008 though. This means future patches and service packs might break IDE functionality.

The fallback position is to be sure one has a retail copy of Windows XP Pro that could be installed for VB6 development. Either a hardware machine or a virtual machine might be used for this purpose. Windows 2000 is not an entirely viable alternative for Vista development for a number of reasons.
Reply With Quote
  #4  
Old 04-08-2008, 06:38 AM
metev metev is offline
Newcomer
 
Join Date: Aug 2007
Posts: 14
Default

Quote:
Originally Posted by JPB View Post
VB6 and Vista are "compatible", if you follow these steps:

1) Install VB6 by exploring the CD and then right-click the setup file and select "Run as Administrator".
2) Install the latest Service Pack using "Run as Administrator"
3) After VB6 is installed, right-click on the VB6 icon and click Properties. On the Compatibility tab select "Run this program as an administrator", "Disable Desktop Composition" and "Run this program in compatibility mode for Windows XP (Service Pack 2)". Then click OK.

Once you've completed those steps, VB6 should work under Vista (I am using it on my computer using these settings).
do you mean: I should install the newest service pack for XP (Service Pack 3)?
The other problem is that i can run the program but there#re some elements like Charts ot Tabs that are not recognized.
Reply With Quote
  #5  
Old 04-08-2008, 07:26 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,885
Default

What do you mean with Charts or Tabs are not recognized?
Does the VB6 starts?
Do you have problems with older projects?
Reply With Quote
  #6  
Old 04-08-2008, 07:37 AM
metev metev is offline
Newcomer
 
Join Date: Aug 2007
Posts: 14
Default

Quote:
Originally Posted by Flyguy View Post
Do you have problems with older projects?
ja! I have been designing an app for the last two years with VB6. Now I bought a new notebook with Vista and I can not open my project. But I can run VB6.exe without any problems as admin. When I try to load some of the forms I get the following log messages:

Line 13: Cannot load control CommonDialog1; license not found.
Line 21: Property OleObjectBlob in MSChart1 could not be set.
Line 13: Cannot load control MSChart1; license not found.
Reply With Quote
  #7  
Old 04-08-2008, 08:12 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,885
Default

That's seems more a problem with the version of VB6 you installed on Vista.

Have a look at this support page:
http://support.microsoft.com/kb/194751
Reply With Quote
  #8  
Old 04-08-2008, 09:24 AM
metev metev is offline
Newcomer
 
Join Date: Aug 2007
Posts: 14
Default

Quote:
Originally Posted by Flyguy View Post
Have a look at this support page:
http://support.microsoft.com/kb/194751
ok I did! I registered every single control. But it still doesnt work!
I will try to reinstall VB6. I didnt quite understand what kind of Service Pack should I have in order to run it?
Reply With Quote
  #9  
Old 04-08-2008, 09:32 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,885
Default

The support page is not about registering the controls manually but about fixing the license problems.

What edition of VB6 did you have on your previous machine and what version do you have installed on Vista (Learning, Pro, Business)

SP6 is the latest service pack.
Reply With Quote
  #10  
Old 04-08-2008, 09:48 AM
metev metev is offline
Newcomer
 
Join Date: Aug 2007
Posts: 14
Default

Quote:
Originally Posted by Flyguy View Post
The support page is not about registering the controls manually but about fixing the license problems.

What edition of VB6 did you have on your previous machine and what version do you have installed on Vista (Learning, Pro, Business)

SP6 is the latest service pack.
its the same version.
How can I fix the license problems?
Reply With Quote
  #11  
Old 04-08-2008, 10:57 AM
dilettante's Avatar
dilettante dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,184
Default

Are you sure that VB6 is running "as admin" when you open your project?

I don't think you're offered that as a context menu choice on VBP files. This means you'd either need to have set "run as admin" on VB6.exe through the appcompat properties or via an elevation manifest... or maybe by starting the IDE from an elevated command prompt.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->