2014年7月11日 星期五

在 64 位元 Windows 作業系統上使用 Visual Basic 6.0 的相關資訊

---------------1---------------
http://support.microsoft.com/kb/894373/zh-tw

Microsoft 開發 Visual Basic 6.0 之前可用性和的 IA-64 x 64 的作業系統。因為 32 位元應用程式無障礙地執行 WOW,經驗應該等同於原生的 32 位元作業系統上執行。雖然 Visual Basic 6.0 中應該執行而不需在 64 位元環境中的任何問題,您可能會遇到未預期的行為在罕見案例中。

當您執行 Visual Basic 6.0 產品在 64 位元版本的 Windows 已建立的程式時,就可能發生問題。當您取得此問題的支援時,您應該注意是否問題時也會發生在對等 32 位元版本的相同版本的 Windows 上執行程式。

因為在 WOW 下執行 32 位元應用程式,您應該遇到 32 位元和 64 位元環境微不足道的差異。

如需有關如何在 64 位元環境中執行 32 位元應用程式的詳細資訊,請造訪下列 Microsoft 開發人員網路 (MSDN) 網站:
--------------2-----------------

VB 6 runtime continues to be shipped with Windows 7 and Windows Server 2008 R2. In general, VB6 app can run on Windows 7.
Here is http://msdn.microsoft.com/en-us/vbasic/ms788708.aspx for you to learn support statement of VB6 on Windows 7.
To learn limitations in 64-Bit Windows, please visit http://support.microsoft.com/kb/282423/en-us.
Meanwhile, please try to run your VB6 app with administrative priviledge and check if you registered your OCX/DLL correctly 
-------------------3----------------------

What is the full name and extension of the file you are trying to install and do you have a link to the download file?
“So, the VB 6 runtime will continue to be shipped with Windows 7 and Windows Server 2008 R2, exactly the same way it was with Windows Vista and Windows 2008 Server"
Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008 and Windows 7
http://msdn.microsoft.com/en-us/vbasic/ms788708.aspx

vbrun60sp3 and vbrun60sp6 are the names of the runtimes I installed,, 
and http://www.mcenter.com/mailpost/help/kb-Q235420.html for sp3 are the download links
Is there another link you can direct me to?

I just assumed that the appropriate run times files were already included in Windows 7 and it was not necessary to install them separately?  I couldn't locate anything later than 290887.  Then again it might not be included, as I have some of the files mentioned in 290887, they are much later versions of course, but I also DO NOT have  some of the mentioned files.
"Error Number 429 ActiveX component can't create object"
Is the ActiveX Installer Service in Services set to Disabled?  It should have a Startup Type of Manual.
Administering the ActiveX Installer Service in Windows 7
http://technet.microsoft.com/en-us/library/dd631688(WS.10).aspx
Have you tried right-clicking on the shortcut to the program, or the .exe, and selecting the "Run As Administrator" option?
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.microsoft.com/default.aspx/kb/929135
What about running the System File Checker?
How to repair the operating system and how to restore the operating system configuration to an earlier point in time in Windows Vista
http://support.microsoft.com/kb/936212/#appliesto


------------------------4-------------------------

Does the VB6 IDE run on Windows 7 64-bit?



Speaking from experience (I run VB6 almost every day in Windows 7 - 64 bit), there is no problem getting it running, in fact you do not have to run it in any kind of compatability mode. There are a couple of Caveats though:
  1. Use the installer from a recent (within 5 years) version of the MSDN.
  2. Install VB6 before installing any other Visual Studio product.
  3. Turn off UAC, VB6 will not run with UAC running.
  4. I have not successfully gotten the old MSDN Help Installed, so I wouldn't bother wasting time trying to get that installed.

Folks on the VB6 newsgroup report  they have managed to get it working on Windows 7 64 bit.
There's this step-by-step guide  on how to install the IDE on Windows 7 (including 64 bit).
If that doesn't work (scrapes barrel) try this old tip  about persuading the install not to install the Java VM?
Or (scrapes hole in barrel) these tips  from an article about getting the IDE working on Vista?
Footnote: if developing with ADO, be aware of this.

-----------------5------------------

You may be wondering, Why install  on the new operating systems such as windows 7 or Windows 8.
Well,  is the best tool for learning GUI  in Windows (according to my teachers in college..!!). But they never tell how to install them on newer operating operating systems. So i figured it out myself.
This has been successfully tested on my Windows 8 64-bit, so it should probably work with Windows 7 too.
So here are the steps which I followed
  1. Create a zero-byte file in C:\Windows named MSJAVA.DLL. The reason for this is that the setup will look for this file and if it doesn’t find it, it will force for installation of very old version of Java (which wont install on Windows 8) and will force reboot too. By creating a zero-byte file, the Java installation is bypassed, and no reboot is required.
    For those who are wondering how to create a zero-byte file here is a simple process.
    • Type cmd in Start Menu -> Right click on cmd.exe -> select “Run as administrator” and type in the foll command
      copy nul C:\Windows\msjava.dll
  2. Now insert your  CD (or extract the given file to a folder on Desktop)
  3. Exit from Autorun (In case of CD)
  4. Browse to the root folder of CD (or the extracted folder on Desktop)
  5. Right Click “SETUP.EXE” -> Properties -> Compatibility Tab
  6. Now Check “Run this program in compatibility mode” and Select Windows XP( Service Pack 3)
  7. Also Check “Run this program as Administrator” and Click OK
  8. Now open SETUP.EXE. UAC will prompt for confirmation. Select Yes
  9. Now some Program Compatibility Assistant warnings might appear. Select Run Program There
  10. Click Next -> Click “I accept agreement”, then Next -> Enter name and company information, click Next
  11. Now Select “Custom Setup” (IMPORTANT). Click Next
  12. Click Continue, then OK
  13. Now Setup Will Wait and process some information. It might also go to “Not responding” State and Windows might Prompt to close the Process. DO NOT close the process.(IMPORTANT)  Select “Wait for the program to respond”.
    Wait time varies, I had to wait for 30-45 mins on “Not Responding” State. You might need to wait more…or less if you are lucky
  14. Now finally the options list appears
  15. Click on “Select All”. All options should be checked. Click Continue, setup will continue.
  16. Now Setup might again Hang on “Updating System”. Wait, DO NOT close the process. Again the wait time might be from few mins to an hour..!!
  17. Finally, a successful completion dialog will appear, at which click OK. At this point, 6 is installed. Some people might also get some error, but  6 will be installed anyways.
  18. Access it from Start Menu
Update: Some of my friends mentioned about he sluggishness of VB6 on Windows 8. For example the resizing of objects. Here is a quick fix
  1. Using Windows Explorer, browse the location where you installed VB6. By default, the path is:
    C:\Program Files (x86)\Microsoft Visual Studio\VB98
  2. Right click the VB6.exe program file, and select properties from the context menu.
  3. Click on compatibility tab
  4. Check the foll checkboxes:
    For Windows 7:
    • Run this program in compatibility mode for Windows XP (Service Pack 3)
    • Disable Visual Themes
    • Disable Desktop Composition
    • Disable display scaling on high DPI settings
    For Windows 8
    • Run this program in compatibility mode for Windows XP (Service Pack 3)
    • Reduced Color Mode (16-Bit Color)
    • Disable display scaling on high DPI settings
  5. After saving open up VB6, It should work normally

----------6-------------------
http://bbs.csdn.net/topics/110118181

谁知道从 VB6.0→VB.NET 的转换工具

1。打开VSTS,新建一个VB.Net工程
2。Tools->Upgrade VisualBasic 6 Code.

升级前先看看这个:
http://msdn2.microsoft.com/zh-cn/library/ywsayxak(VS.80).aspx

用VS2003打开VB6的项目,自动转换成VB.NET


沒有留言: