Building a Commercial e-Statement Application in VB 6 – Setting up your development environment
During our last article we looked at the E-Statement Basics and what you will need to have before you are able to develop this application. Today we are going to setup our development environment before we begin programming our application. After this article the up coming articles will be purely coding so make sure you set up your development environment correctly.
In Summary, we are going to do the following in this article
- Installing Microsoft Visual Studio 6.0 on Windows 32-bit versions and Windows 64-bit versions
- Installing Microsoft SQL Server 2008 R2 Express Edition
- Installing Notepad ++
- Testing Visual Studio with a “hello world” program
E-Statement Development Tools
So lets start setting up our development environment:
Installing Microsoft Visual Studio 6.0
I will assume you have the SETUP files for installing Microsoft Visual Studio 6.0.
Windows XP and Vista
For 32-bit versions of Windows Vista and XP accept Visual Studio without trouble. If you have a Windows Vista computer or one running XP, simply install Visual Studio from the CDs or other media using the automatic Installation Wizard. During installation, Visual Studio prompts you for the languages you want to use; make sure you select Visual Basic 6.
Windows 7 and 8 64-bit version
Again here for 32-bit versions of Windows 7 and 8, installing Visual Studio 6.0 is somewhat more straightforward. The problem comes when installing Visual Studio 6.0 on a 64-bit versions of Windows 7 and 8. But don’t worry I was able to install on my machine running Windows 8.1 Pro.
- Create a zero-byte file in C:\Windows\System32 and C:\Windows\SysWOW64 named MSJAVA.DLL
To create the file open Notepad and do not type anything, go to File > Save as MSJAVA.DLL. Make sure to choose All Files on the Save as type ,as shown below. Save it on your desktop before copying it to C:\Windows\System32 and C:\Windows\SysWOW64
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 and will force reboot too. By creating a zero-byte file, the Java installation is bypassed, and no reboot is required.
- Insert your Visual Studio 6 CD (or extract the given file to a folder ), exit from Autorun if using a CD.Browse to the root folder of CD (or the extracted folder) .Right Click “SETUP.EXE” -> Properties -> Compatibility Tab. Now Check “Run this program in compatibility mode” and Select Windows XP( Service Pack 3) .Also Check “Run this program as Administrator” and Click OK
- Open SETUP.EXE UAC will prompt for confirmation. Select Yes .Program Compatibility Assistant warnings might appear. Select Run Program There Click Next -> Click “I accept agreement”, then Next -> Enter name and company information, click Next Now Select “Custom Setup” (IMPORTANT). Click Next ,Click Continue, then OK
- Let the Setup run. 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”, you might have to wait for 30-45 minutes on “Not Responding” State
- Now finally the options list appears Click on “Select All”. All options should be checked. Click Continue, setup will continue.Here the Setup might again Hang on “Updating System”. Wait, DO NOT close the process. Again the wait time might be quite long, BE PATIENT
Finally, a successful completion dialog will appear, at which click OK. At this point, Visual Basic 6 is installed. Some people might also get some error, but Visual Basic 6 will be installed anyways.
Installing Microsoft SQL Server 2008 R2 Express Edition
Now that we have installed our front-end, we need to install Microsoft SQL Server 2008 R2 Express Edition as our application`s back-end. You will need to download Microsoft SQL 2008 R2 Express Edition from Microsoft which is compatible with your Windows.
- Determine if the operating system is 32 or 64 bit. You can determine this by going into the Control Panel, going into System, and checking what it says under System type.
- Run the correct installation:
SQLEXPRWT_x64_ENU.exe – 64 Bit Operating System
SQLEXPRWT_x86_ENU.exe – 32 Bit Operating System
- If any of the prerequisites are missing, you need to install them before you continue. This includes .NET Framework 3.5 Service Pack 1. When you run SQL 2008 installation, it will specify if any per-requisite programs are missing and provide download links for these programs.
- The following option will be desplayed
- Click on “New installation or add features to an existing installation”. Accept the License Terms. Click Next.
The installation will check that it has all of the programs that it needs to install. It will notify you if it is missing any files and stop you at this point.
- The following options should be selected:
- Select the Default Instance, unless you specifically want a different instance name (creating an instance allows you to run more than one SQL Server on one machine)
- On the drop down for the SQL Server Database Engine, select “Network Service” for the Account Name to run SQL on
- Select Mixed Mode and enter the password of your choice. Remember the password (IMPORTANT). Also Click on Add Current User.
- Complete the installation by clicking on Next
Installing Notepad ++
Notepad ++ is my favorite text editor because it is lite and comes with a great syntax highlighting . We are going to use this when creating our HTML email body before we transfer it to V6 code editor.
- Download Notepad ++ Installer and follow the setup instructions.
Congratulations if you have successfully set up your development environment. In case you have any problems you can contact me or comment and I will try to reply ASAP.
Testing your Visual Studio 6.0
Open your Microsoft Visual Basic 6 and create a New Project of Standard EXE type and Click on Open
The setup will automatically add Form 1 to your Project1. Add one Command Button to your form.
Double click on your button and add the following code:
Private Sub Command1_Click() 'Author: www.smarttechdiary 'Module: Testing VB6 Installation MsgBox "Hello World", vbInformation, "VB 6.0 Testing" End Sub
Run your program and click “Command 1” button. If you see the following window, then you have correctly
installed Microsoft Visual Studio 6.0
I am going to end here today until next week. But I would like to hear from you, so please leave your comments/suggestion below. Kindly Like and Share the posts with your friends using the buttons below.
You can also register to our Mailing List so that you don’t miss our next article.
Aileru mukaram says
Please can you send me the setup of that visual basic 6.0, the one on my system as corrupt (the setup and the one i installed on my laptop) both as corrupt
Abdalla Nizar says
Hi Aileru, please check your mail. Hope it helps.