Question about Computers & Internet

1 Answer

Vb6 source code is not compiling.

I am trying to compile a source code of vb6 name building the time tracking system. The problem is somewhere in procedure. Kindly let me know the solution. The code is
Private Sub cmdOK_Click()
Dim sngBilledTime As Single, iMinutes As Integer, iHours As Integer
Dim iResponse As Integer
If txtAmountOfTime.Text = "0.00" Then
Msgbox "Your must enter the time spent."
Exit Sub
ElseIf txtBillingRate.Text <= 0 Then
Msgbox " You must enter the Billing Rate."
Exit Sub
ElseIf lblBillingName.Caption = " " Then
lblBillingName.Caption = InputBox("Please enter your name:")
End If
iResponse = Msgbox("Do you want to perview the invoice?", vbYesNo, "Invoice")
If iResponse = vbNo Then
Load frmInvoice
With frmInvoice
.lblBilledBy .Caption = frmBillingInfor.lblBillingName
.lblClient .Caption = frmBillingInfo.lstClient.Text
.lblDate .Caption = frmBillingInfo.mskDate.Text
.lblRate.Caption = Format(frmBillingInfo.txtBillingRate.Text, "Rs ####.00")
.lblWorkCategory .Caption = frmBillingInfo.cboCategory.Text
If frmBillingInfo.optByHour.Value = True Then
.lblHourOrJob.Caption = "an Hour"
iMinutes = Val(Right(Me.textAmountOfTime.Text, 2))
iHours = Left(Me.txtAmountOfTime.Text, (InStr(1, Me.txtAmountOfTime.Text, ":") - 1))
Select Case iMinutes
Case Is < 15
If iHours > 0 Then
sngBilledTime = iHours
sngBilledTime = 0.5
End If
Case Is >= 15 And iMinutes <= 30
sngBilledTime = iHours + 0.5
Case Is > 15 And iMinutes <= 30
sngBilledTime = iHours + 1
End Select
.lblTotalAmount.Caption = Format(frmBillingInfo.txtBillingRate.Text * sngBilledTime, "Rs####.00")
.lblTotalTime.Caption = sngBilledTime
.lblHourOrJob = "form item"
.lblTotalTime = "N/A"
.lblTotalAmount = Format(.lblRate.Caption, "Rs####/00")
End If
End With
Unload Me
End Sub
On compilation the message "invalid use of property" is coming and invoice window is not displayed.

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points


    An expert that got 10 achievements.


    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

  • Master
  • 981 Answers

What the heck are you compiling it with that doesn't give a line number for that error? Pay attention to the titles of messageboxes! Perhaps noting what lines you changed from the original will give a clue to narrow it down, but I expect you addressed an object with a property ( in a context that can't be expected to generate or use that property as you gave it. Moreover there are spaces in object names, it seems....

Posted on Jun 10, 2008

1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

How we use linux complier to edit, debug and compile computer programes

I'm assuming your using some form of C.To edit, you can install command-line based editors like emacs and vim, or use gui editors such as gedit or kate. There is also IDE options like EclipseTo compile is relatively simple, most linux distros come with a builtin version of gcc and g++ (the c compiler and c++ compiler); more information here: debug, it is a little more complex and you may have take some time to properly learn the workings of a debugger. If you're using Eclipse, I'm pretty sure there's a builtin debugger in that which would be rather simpler to use than the alternative I use: gdb (

Oct 10, 2011 | fedora Linux Operating System

1 Answer

How to pprogram a java language

download java compiler from

Go where you install your java, default Path is "C:\Program Files\Java"
in Java Folder open folder jdk then open bin copy its directory located at the address bar then

Right Click My Comuter > left click Properties > Advance > Environment Variables > on System Variables find Path then click it then click Edit
insert a semicolon " ; " on the end of the textbox (if already have don't add semicolon) then paste the directory you copy...

you can now create your Java Code....

to Compile and Run it...
open command promt ( to open click start > run > type cmd )
go to directory where you save your java code..
(ex. if your Directory is "D:\Java Folder" then type "cd.." press Enter repeat "cd.." until "C:\>" is remaining then type "D:" press enter then type "cd Java Folder" then press Enter type "javac (name of your javacode).java " Press Enter (if there is an error correct your java code) if no type "java (name of your javacode)" there you can run your Java Code

Aug 04, 2011 | Microsoft Windows XP Professional for PC

2 Answers



Turbo C/C++

64 Bit operating systems like Windows Xp64, Windows Vista64, and Window 7 will no longer run 16 bit applications and this includes Turbo C 2.01/Turbo C++ 3.0/3.1 or the programs they produce.
Turbo C 2.0 was first released in 1989, Turbo C++ 3.1 in 1991 making these programs nearly two decades old. They are just too old to run on modern PCs.

Upgrade To Modern Compiler

Note that Turbo C/C++ is very very very very old and produces 16 bit programs which no long run on many modern computers. So the best advice is to upgrade to a new compiler. There are many free compilers out there that you can use.

Free Compilers:
  • Microsoft Express 2008 -- Great compiler and comes with a nice IDE (Visual Studio)
  • MinGW -- Command line compiler but there are many IDEs that use it such as Code::Blocks, Eclipse, Dev-C++
  • Borland C++ 5.5 -- Will compile Turbo C++ programs (including graphics.h) but produces 32bit code (slightly better than Turbo C) Only includes command line tools.
  • DigitalMars -- Its still old but at least it produces 32bit programs (better than Turbo C). You might stumble across D++ which is a very powerful language derivative of C++.
  • OpenWacom -- Again, nearly as old as Turbo C, but it produces more modern 32bit applications! (this project is still active too).
If you are just working with C there is:
  • Pelles -- and excellent modern C compiler and IDE. Pelles also has the new TR1 libraries available so you can use regex and other new features. As well as support for many older libraries.
  • LCC-Win32 -- Used as the basis for many of the research compilers.
  • Tiny C -- is said to produce very fast programs.
All of the above are Free and all excellent replacements for Turbo C which is so old it will not even run on your computer.


May 24, 2010 | Microsoft Windows Vista Ultimate Edition

1 Answer

I can`t use goole chrome in my PC

For a long time, I've kept a Windows machine for Remote Desktop access that I use just so that I can use Google Chrome. The reason is that editing Google Sites pages, for example, drags Firefox 3.5 and Opera 10 to a slow crawl. And Firefox 3.5 on Linux (since beta2) crashes my X11 server because the video driver (xorg-intel) is old and buggy. But I've long wished to abandon Windows altogether. I share the Windows machine with another graduate student, and the Windows Server 2003 license for that computer restricts two remote desktop connections. This is surely absurd for me as a Linux user because I've along accustomed to unlimited number of connections (subject only to resource availability as opposed to artificial license restriction). Granted, I could have used VNC, but it's not as responsive.
It is currently not my best interest to figure out how to compile Chrome from scratch (they appear to be using some gclient custom build tools). However, the precompiled binary snapshots require more recent versions of FreeType, Gtk+, and NSS (network security service, as part of Mozilla) than that available on BU Linux (which is a RHEL/CentOS 5 derivative).
Compiling Gtk+ is a nightmare because of the sheer number of dependencies. Here I'm listing the packages I need. The listing format is "target: dependencies"
  • gtk+: atk glib cairo pango jasper fontconfig
  • pango: cairo freetype glib
  • cairo: libpng freetype pixman fontconfig
  • fontconfig: freetype
  • atk: glib
  • glib:
  • libpng:
  • freetype:
  • pixman:
  • jasper:
The order listed above is in reverse topological order. I just put them in a Makefile and let make figure out the order for me. Fortunately, these packages are standard GNU autoconf/automake based. You will have to set export variables as follows:
  • PREFIX := ... # you pick a convenient location
  • export CFLAGS := ... # you pick the compilation options, e.g. -march=i686 -O3
  • export CPPFLAGS := -I$(PREFIX)/include
  • export LDFLAGS := -L$(PREFIX)/lib
  • export PKG_CONFIG_LIBDIR := $(PREFIX)/lib/pkgconfig
  • export PATH := $(PREFIX)/bin:$(PATH)
  • export LD_LIBRARY_PATH := $(PREFIX)/lib
You will have to run configure with --prefix=$(PREFIX), and then run make and make install inside your Makefile.
I also wrote a script to essentially do the following. This will be left as an exercise to the reader.
  • Given a target name like gtk+, locate the source package tar.gz and unpack it.
  • Make a new object files directory and run the configure script there as the current working directory. If the build fails, you can just remove the object directory to get a clean slate, instead of needing to unpack the source files again.
  • Do the traditional make and make install.
  • Touch the target as a file, so make doesn't have to repeat building and installing a target if it already succeeded.
Each rule in the Makefile would look like this:
# Assuming the build script is called in the current directory.
BUILD := ./build.shgtk+: export LDFLAGS := -lm # for jasper
gtk+: atk glib cairo pango jasper fontconfig
$(BUILD) $@On the other hand, NSS has its own build instruction, so I did it manually. The resulting nss shared objects must be symlinked in a particular way:
  • Add ".1d" suffix: libnss3, libnssutil3, libsmime3, libssl3.
  • Add ".0d" suffix: libplds4, libplc4, libnspr4.
I imagine that's Ubuntu/Debian convention.
I also compiled my own gcc 4.3/4.4, and without a recent gcc and, you will get a dynamic linking error with the symbol GLIBCXX_X_Y_Z.

Jan 17, 2010 | Red Hat Enterprise ES 4 for Linux

1 Answer

Plss!! give me the few steps to run c program in command prompt

Light-Weight C Compiler for windows: Tiny C Compiler.

Last version download:

To compile: tcc.exe source_file.c -o compiled_file.exe

May 24, 2009 | Dell Computers & Internet

1 Answer

In c language can i print my name without using semicolons???

you need to use an endline function when outputting to the screen, example:
cout << "my name" << endl;

Mar 02, 2009 | Microsoft Windows XP Professional

1 Answer

I have vista 64 bit osis there any tc/c++ compiler that can run

You may try donloading Dosbox which is an Excellent program for running all 16bit and 32bit Programs


you can checkout Dev++ which is a C++ compiler for all 64bit and 32bit Operating Systems as an option. Search it on Google and Download it may be better compiler for Vista than the traditional C++!! Rate if the answer helped!!

Feb 02, 2009 | Microsoft Windows Vista Ultimate Edition

11 Answers

Looking for a vista compatible c/c++ compiler

As 32 bit vista does not support full screen 16 bit plarforms(like c/c++) nd not at all suportable by 64 bit vista. to install u have to install the display drivers of XP, that can be found at the site of the manufacturer of ur Laptop/PC(in some cases graphics card manufacturer). All the best...., further having any query , pLz fell free 2 ask

Mar 05, 2008 | Microsoft Windows Vista Ultimate Edition

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

87 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers


Level 3 Expert

100304 Answers

David Payne
David Payne

Level 3 Expert

14160 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides