Difference between Delphi and vb6?

I would like to ask what is the difference in between vb6 and also delphi5..what is the benefit using delphi?
lbseongAsked:
Who is Participating?
 
kretzschmarCommented:
listening . . .

(i don't use vb, therefore i'm not objective)
0
 
scrapdogCommented:
I have used both VB and Delphi, so here is my personal opinion.  Yes, I am a bit biased:

-  Delphi is Object-Oriented.  VB is merely Object-Based...unless Microsoft has cobbled on OO behavior by now.
-  Delphi comes with about 100 components, all with source.  The VB component palette had less than 20 components.
-  There is a cult following of Delphi developers...there are many freeware add-on components.
-  Anything you can do in C++, you can do in Delphi (and in IMO, you can do it quicker).
-  The Object Pascal language lends itself to fast, optimized, code (just like C++).  It is always compiled (contrary to common C++ programmer belief!)
-  You don't need any DLLs or run-time libraries to distribute with your app (but you certainly can if you want).
-  Working with databases is a lot easier in Delphi, and given the OO nature of all of the DB components, more powerful.


There is only ONE thing (in my experience) that I have found that VB does better than Delphi, and that is it is easier to design control arrays at design-time.
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
lopemCommented:
Even I am not very objetive, just think about all the dynamic dta structures which VB lacks of... Enough reason to use Delphi..

best regards,
Manuel Lopez (lopem)
0
 
MadshiCommented:
Here's a link to a collection of articles which compare Delphi to VB and others:

http://delphi.about.com/library/weekly/aa042799.htm?once=true&

If you're not sure which development system to use, why not trying both and see what you like more (but give them both a real chance)? Here in the Delphi forum you'll hear: Use Delphi! In the VB forum you'll probably here the opposite.

I for one love Delphi (though there are some nasty things). I would stop programming at once, if I would have to convert to C++ or such a stuff...

Regards, Madshi.
0
 
YodaMageCommented:
Built in tools for Interbase, which in my opinion is at least 90% what MS SQL is, and is FREE.

What other tool allows you to build multi-tier apps, with either thin or thick clients, with a true SQL database, for multiple platforms (I don't think VB works real well in Linux, lol), with an investment of less than $3000?

Pascal was used as the base programming language in university for decades for a reason. It is structured, logical, and as close to natural language as any other language developed.

I think you'd be better off comparing C++ to Delphi, as VB does not have the power to even be in the same class.
0
 
scrapdogCommented:
When I was forced to use VB for a project once, I thought VB was a joke.  I couldn't believe how many people actually use BASIC for serious applications...
0
 
YodaMageCommented:
C++ would be OK Madshi, I'd never touch the computer again if I had to program in V.FoxPro....YIKES
0
 
GwenaCommented:
In my opinion Delphi is far better than VB
-VB seems very buggy
-VB makes exe's that are WAY TOO LARGE :-(
-VB exe's seem slower than Delphi exe's
-VB programmers always have to worry about the user having the proper runtime file... to be safe they have to include it with their programs..and it's huge :-(

-Delphi has a lot more free code and components available to use.
-Delphi is easier to use and a lot less buggy!
-Borland has better Karma than Microsoft :-)

alas I think it is easier to get a job as a VB coder than as a Delphi coder... life can be so unfair :-(
0
 
DragonSlayerCommented:
Here's one benchmark I do not agree with:
http://msdn.microsoft.com/vbasic/prodinfo/benchmarks/bench1.asp

Gwena, here's what M$ did:
> VB makes exe's that are WAY TOO LARGE :-(
They distribute the VB runtime with the OS... talk about unfair! Hey perhaps the lawsuit should include "Including Delphi's runtime packages in the OS" :)


0
 
intheCommented:
if you want money go with vb
if you want friends go with delphi ;-)


some comparison well a simple api call shellexecute() example in vb then delphi:

' vb example(maybe exagerated slightly):

Private Declare Function GetDesktopWindow Lib "user32" () As Long

Private Declare Function ShellExecute Lib "shell32.dll" _
    Alias "ShellExecuteA" _
   (ByVal hwnd As Long, _
    ByVal lpOperation As String, _
    ByVal lpFile As String, _
    ByVal lpParameters As String, _
    ByVal lpDirectory As String, _
    ByVal nShowCmd As Long) As Long
   
Private Const SW_SHOWNORMAL As Long = 1
Private Const SW_SHOWMAXIMIZED As Long = 3
Private Const SW_SHOWDEFAULT As Long = 10
Private Const SE_ERR_NOASSOC As Long = 31

Public Sub RunShellExecute(sTopic As String, _
                           sFile As Variant, _
                           sParams As Variant, _
                           sDirectory As Variant, _
                           nShowCmd As Long)

   Dim hWndDesk As Long
   Dim success As Long
   hWndDesk = GetDesktopWindow()
 
  success = ShellExecute(hWndDesk, sTopic, sFile, sParams, sDirectory, nShowCmd)

End If
   
End Sub



//delphi example just drop a button on a form and all you ahve to type is:

uses shellapi;

shellexecute(handle,'open'pchar('somefile.exe'),nil,nil,sw_normal);

says it all really..
and your hands last longer cause of less typing :-)
0
 
lbseongAuthor Commented:
actually I just start Delphi, but I dont know about pascal...and last time I learn vb before..I feel that vb more friendly...is it true?
0
 
scrapdogCommented:
From DragonSlayer's link:

>For new projects, programmers and managers using Delphi
>should seriously consider a switch to an easier
>environment (e.g., Visual Basic) or an equally difficult,
>but more powerful and standardized one (C++).

Microsoft is training to brainwash all of the naive managers out there with this propaganda crap.  I thought this whole article was pretty funny.
 
0
 
scrapdogCommented:
>I feel that vb more friendly...is it true?

Yes, if you don't know Pascal.  But once you try to implement any complex abstract data types, it becomes your worst enemy.  I once spent hours trying to cobble code in VB to work around its lack of polymorphism.
0
 
modderCommented:
lbseong account suspended for abuse of EE. Accepting first useful comment to close the question.

modder
Community Support
0
 
lbseongAuthor Commented:
I am back liew..hope somebody give me answer...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.