C++ and VISUAL BASIC can both go plenty fast enough for each of their uses.
C++ is primarily used when controlling things that are
100% in the computer.
VB is primarily used to react to human actions.
As both run under the WINDOWS O/S, one can chose the one that suits the current task.
I use a mix of them. VB creates an easily-used interface, then sends a triggering signal to a microcontroller (programmed in C) which performs
the task.
Visual Basic Graduates from the Good Old GWBasic language. Which means It does most of the work for you. You never have to venture into the core technologies.
with c you may well to have learn and use the core technologies(directly accessesing memmory etc, etc) , write code metticulasly for these to work.
C is more used where you need extremely complex and accurate math operations and in graphical programming.
for example, programms like autocad are be written in c , while these app can be very slow/inaccurate in vb.
So if you writting a simple fron end business application vb can be your best choice.
These are good points.
I think that most of the programming cost goes to
developing bullet-proof coding. Selecting the "quickest"
language in many cases reduces down to the language that
takes the least amount of time to program - C++ is the
quickest for some applications, VB for others.
Comparing the execution speed of C++ and VB is not an accurate representation of language speeds. What your really comparing, most likely, is the ability of the various compilera to generate efficient code, and to apply various optimizations with respect to performance. In short, its not the language that determines execution speed, but the compiler. Its quite likely that the same code, compiled with the Borland C++ compiler will not have the same execution speed of the identical C++ program compiled with the MS Visual C++ Compiler.
That being said, what really provides performance capabilities with C, that VB does not provide, are for example, some of the following programming capabilities:
Ability to to write inline assembler code
Store variables in registers
Pointer manipulation
Shuffle pointers rather than shuffle values
Pointer based string manipulation functions
and others things as well. On the flip side, code development and maintenance are usually easier with VB. Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
VB is much faster than c++, as long as you choose to measure time taken to implement most commercial apps.
The original question is like asking if a racing car is faster than a 38 tonne lorry: The answer is 'not if you want to carry 30 tonnes of bricks'
Loosely written questions will get ambiguous answers! Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.