What's new

VB faster how C++ ???

GuestX

New member
i´ve found a book in the internet, its a special book
for VB . i have readed something and there it says that with
that book you can code VB so fast, that C++ programmer cant.
the spped of VB is faster how C++.

ps: i dont know, if it is true
 

Eagle

aka Alshain
Moderator
Yes, a lot faster code wise. In VB you dont have to code the forms that appear in Windows, I think in C++ you do. In VB its kinda like a drag and drop deal. If I want a text box here, I drag one here, if I want a picture there I drag it there. C++ you have to do it all in code. Where as in VB you only have to code what the objects do, but in C++ you have to code them and what they do.

I know this is kind of confusing (and inaccurate) but I dont know a better way to explain it. Also I have no experience programming C++ for Windows so I'm not sure I'm correct on that, but that is how it was explained to me.

Program speed wise, C++ is much more efficient and faster running than VB, in adittion the file sizes are much smaller in C++.

EDIT:

They might have meant you can learn it faster. VB doenst take long to learn at all, but C++ is more complex and more versatile.

Also, can a mod move this, it doesnt belong here.
 
Last edited:

AlphaWolf

I prey, not pray.
VB is a higher level language than C++. Higher level languages provide a few advantages, namely they have a lower learning curve, take less time to actualy write the software, and they are much easier to port to other platforms. But as eagle mentioned, the higher level the language is, the less versatility, and less processing speed you will obtain, because you are communicating with other software, which communicates with the OS, which communicates with the hardware. The only reason you should use higher level languages is if you want to write software that doesn't have to be particularly fast or isn't supposed to do anything out of the ordinary, other than process a few numbers or automate a relatively simple task, or if you just want to be able to come up with a reasonably useful program in a small ammount of time.

If your planning on writing a front end or something equaly uncomplex, use VB, if your trying to write something like an emulator, which is several times more complex, you definitely want a lower level language. Assembly seems to be the prefered language in this area, but C++ is ok for the older and slower target platforms.
 

Malcolm

Not a Moderator
AlphaWolf said:
VB is a higher level language than C++. ...
Actually VB and c/c++ are both considered 3rd generation langauges. Though VB (Visual Basic) is a language that is very basic, meaning it is easy to understand and program in. Where as c/c++ is a language that his higher level functions that require more time to learn.

But the gap between VB and c/c++ is getting smaller then to Microsoft. They are making VB rise up a bit from what is used to be, but they still keep VB's main functions low enough that VB can be used by beginners that have no programming experience whatsoever.

Hope this makes sense, I'm writing this @ 2:38am :p
 

AlphaWolf

I prey, not pray.
Malcolm said:
Actually VB and c/c++ are both considered 3rd generation langauges. Though VB (Visual Basic) is a language that is very basic, meaning it is easy to understand and program in. Where as c/c++ is a language that his higher level functions that require more time to learn.

Realy? I thought all VB binaries still require extensive external libraries in order to function, whereas C++ binaries are more direct?
 

Malcolm

Not a Moderator
AlphaWolf said:
Realy? I thought all VB binaries still require extensive external libraries in order to function, whereas C++ binaries are more direct?

Thats not how languages are defined. A first generation langauge is one that speaks directly to you processor (ASM), a second is like fortran where you have functions that you call that speak to the processor, c+/VB is a third because you create code with an actual languag (english) and then your code is run through a compiler which translates your code into ASM, and then the processor runs it.

I hope thats right :p
 

Sukh

Long gone...
As a very experienced VB user and a C++ learner, I can tell you that C++ is much harder. However, the argument that VB requires extensive libraries only applies to people who do not know how to optimise their software or they've never heard of RAR :D Basically, you can get most VB apps down to 2 libraries (main VB dll plus common controls) and that's it :) You just need to know how to pull a few strings here and there :)

Also, VB is compartively slow... but with the invention of ".NET" VB is pretty much just as powerful as C++ .NET although it's slightly slower (C++ goes through some optimisation engine or summit :D).
 
Addition

Ok, VB is really easy to learn, what am i saying, dont even have to learn !, the interface is so intutitive, that like 10 minutes after lookin at it I made my first program. It comes so, coz VB "wrapps" all functions in the way of button and easy instructions, so you can make a window in no time, while in C++ ya will take a long time and at least 100 lines of code!!. But so, VB is pretty good just for making interfaces in a simple way, such as small applications of all kind, while C++ is the standard for developing of videogames and fast stuff coz since it a low-end language, ya have to implement and do most of things, while ya can keep yer source clean and optimized.

:devil:
 
Well again..

Well, but Ive seen some VB games (..slow...) using this feature, but trust me, its a million times betta to do the dirty work by yerself (C++) than not by (VB)

:holiday:
 

Top