Solved

Difference between Delphi and vb6?

Posted on 2001-07-23
16
393 Views
Last Modified: 2012-05-04
I would like to ask what is the difference in between vb6 and also delphi5..what is the benefit using delphi?
0
Comment
Question by:lbseong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
  • +7
16 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6309232
listening . . .

(i don't use vb, therefore i'm not objective)
0
 
LVL 5

Accepted Solution

by:
scrapdog earned 30 total points
ID: 6309265
0
 
LVL 5

Expert Comment

by:scrapdog
ID: 6309293
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:lopem
ID: 6309431
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
 
LVL 20

Expert Comment

by:Madshi
ID: 6309621
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
 
LVL 4

Expert Comment

by:YodaMage
ID: 6309688
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
 
LVL 5

Expert Comment

by:scrapdog
ID: 6309709
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
 
LVL 4

Expert Comment

by:YodaMage
ID: 6309717
C++ would be OK Madshi, I'd never touch the computer again if I had to program in V.FoxPro....YIKES
0
 
LVL 5

Expert Comment

by:Gwena
ID: 6309931
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
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6310702
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
 
LVL 17

Expert Comment

by:inthe
ID: 6311544
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
 

Author Comment

by:lbseong
ID: 6312896
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
 
LVL 5

Expert Comment

by:scrapdog
ID: 6313627
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
 
LVL 5

Expert Comment

by:scrapdog
ID: 6313638
>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
 
LVL 3

Expert Comment

by:modder
ID: 6316351
lbseong account suspended for abuse of EE. Accepting first useful comment to close the question.

modder
Community Support
0
 

Author Comment

by:lbseong
ID: 6364481
I am back liew..hope somebody give me answer...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using idhttp to login to instagram 2 120
how to center only a line in richedit? 4 69
Create Database on Android via Delphi dbExpress 3 129
Delphi: Connect to running MS Outlook 4 165
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question