inteliture.com
Google

Saturday, July 14, 2007

How to avoid errors when running a VB program

An Introduction.

This tutorial is for newbies, who are having troubles starting a program coded in VB and how to avoid getting error(s).

The Visual Basic Run-Time files are Files needed to run an Application that was designed with Visual Basic (VB). VB is merely a programming language that programmers use to write programs. Run-Time Files are files your application must have in order to work correctly, these files are needed by all Visual Basic applications.

Visual Basic runtime files is required because, when a program is compiled under Visual Basic, all built-in functions of Visual Basic is in the runtime library. Windows ME/2000/XP and later versions of windows distributes the Visual Basic runtime files with the installation. If you are running on one of these version of Windows, or, you can search in your "C:\" for "MSVBVM60.DLL", if it is found then then you can ignore this.

Where to place them/how to use them.

Well, if u are going to use the installer provided by microsoft, anything will be done by itself. If for any reason u want this to do it by urself (ex. if u installed the Run-Time files and u still get an error when run a program) u must know the followings:

  • The VB applications reads from C:\windows\system32 directory of a system. There are located all Run-Time files (ex. *.OCX, *.dll etc). If system32 dir doesn't exists, then uses the system dir (C:\windows\system).
  • Search the net (ex. google or yahoo) and find the missing files.
  • When u find them, place them in the directory mentioned above.
  • Rerun the program.

NOTE: If no other missing file(s), the program will be run just fine.

NOTE: If for any reason after all this procedure u get error(s) about registration of file(s) go to START -> Run and type in regsvr32 filename ex. regsvr32 richtx32.ocx . Do this for all the (new) files which u added. To do this, note that u must already previously placed the file(s) in ur dir mentioned above.

Where to get Run-Time files.

Easily u can download the installer from microsoft. If for any reason the link aint working, just visit www.microsoft.com go to downloads and search for it.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=BF9A24F9-B5C5-48F4-8EDD-CDF2D29A79D5

NOTE: It doesn't mean if u install Run-Time files that u wont get any other errors, since programmers creates there owns functions and components (ex. *.OCX). So, just search the net to find the specific (if) missing file(s) and follow the above procedure again.

No comments: