Results 1 to 25 of 25

Thread: Why VB programs are...

  1. #1

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking Why Vb programs are...

    I don't know why all the famous software are coded in C or other languages but not VB even though it is much more simpler than other languages. I find C too difficult. Am I right or wrong? Which language should I go in for making very good programs and comparitively samller in size. Can VB do this?

    [Edited by kinjalgp on 04-28-2000 at 09:30 PM]

  2. #2
    Member
    Join Date
    Jan 1999
    Location
    Longmont,CO
    Posts
    53
    I think the biggest drawback for building VB apps is those damn runtime DLLs you need to distribute. Size, speed, etc. aren't that much different if you're talking about windows apps. A well written VB app can perform equally as fast as an equivalent C/C++ windows app.

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    I aggree Absolutely, I use Borlands C++ Builder (cloned from delphi) for a while and some things are nice but VB is a better package.

    Free threading is comming, but a real app should be able to static link.

    I wanted to make apps like winzip which can output to an exe instead of zip. I can code it but if the people don't have the runtimes it won't run! I'd have to write the distributable executable part in C++. That's poor

    It means you can't make any light exe frameworks for just anybody. Win2K has the vb6 runtimes installed but vb7 is on its way out

    Too little too late. I want static linking

    And not bloody "Fusion"!, Static linking a small tool to 1.5megs is not what I had in mind.

    [Edited by Paul282 on 04-28-2000 at 09:27 AM]
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  4. #4
    Guest
    I thought VB ran at about 90% of the speed C++ doed, plus you can do multithreading in C++ which helps speed.

  5. #5
    Guest
    oh dear, I meant to post that under my other name, I hope nobody's guessed my secret batIdentity.

  6. #6
    Guest

    Talking

    Lets us all wait for VB7. Then we will decide wich languages is the best for windows.
    And i know, VB will kick some A****..

    <><><><><><><><><><><><><><><><><><><><><><><><><>
    Why thinking Hard! Just think Easy!
    <><><><><><><><><><><><><><><><><><><><><><><><><>

  7. #7
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    But nothing inthe release notes yet mention static linking

    But a lot of other stuff looks good !!!
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  8. #8
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163
    Static linking encapsalates everything a program needs inside the exe. In other words no dlls required, this would include the VB runtime library. TO distribute a program all you would need to do would be copy the exe onto to the machine you want it to run on (Kinda of like the days of DOS).
    Glenn D
    Development/Analyst

  9. #9
    Guest
    hmm, is there any way to tell if your app requires any external files?

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Robin: HEeheh, don't do anything stupid now.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  11. #11
    Guest
    Is VB7 going to be directed mainly towards Win2000?

  12. #12
    Member bcx7's Avatar
    Join Date
    May 1999
    Location
    Adelaide, South Australia, Australia
    Posts
    46
    i heard that you only need windows 2000 if you run a network because it's more powerful than Windows NT. i really like vb but i don't want to upgrade my computer to be able you use it. i think at vb7 will look good.

  13. #13
    Guest
    I remember using VB4. It was the first programming language I used. I learnt from a book which told me how to create a project that does nothing until you exit it.

  14. #14
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    one of the big dissadvantages of VB is that it's very hard to manipulate string pointers, which means C++ can handle strings very quickly and VB can't.
    If it wasn't for this sentence I wouldn't have a signature at all.

  15. #15

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking

    But still VB is far far far easier to learn and code than C.

  16. #16
    Guest
    But the difficulty makes up for it.

  17. #17
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    one of the big dissadvantages of VB is that it's very hard to manipulate string pointers, which means C++ can handle strings very quickly and VB can't.
    I'm not sure I aggree Sam, C++ usually impliments one type of String class or another (AnsiString in BCB for example)
    with the idea of simplifying C strings (Char arrays) but they come at the cost of performance. If you want fast strings like C then use byte arrays. Although you won't quite match perfomance you can pass the first array position as a pointer.

    Even in C it's well known that (non floating point) integer math will be quicker than char arrays.

    C lets you go lower level when necessary though

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  18. #18
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374

    Thumbs up

    I love this "which-is-better-C++-or-VB" thing. I've heard it argued one way or another about a thousand times. Bottom line: each language has its unique strengths and weaknesses. usually when someone says one is better than the other, it is because they know one better than the other. Like me! I can work well in VB but I would have to ask for help for something as simple as declaring a variable in C++

    To compare Vb and C++ is to compare apples and oranges. They are both fruits but otherwise are completely different.

  19. #19
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I'm in no way an expert on C++, VB strings just annoy me because they're wierd. I've only used basic char arrays in C++ and I like the idea of pointers, the API is alot easier to use if you can use pointers properly.

    Obviously neither language is "better" I like VB because I know how to use it.

  20. #20

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking

    Don't you all think that Microsoft should develop a language which has ease of VB and power of C an probably be named "Visual CBASIC" .

    HA HA HA

    Kinjal

  21. #21
    Guest
    But it's the complexity of C++ that makes it flexiable and powerful. If it were as easy as BASIC, it wouldn't be so powerful.

    Let me ask you guys this. Could you build something like Windows with Visual Basic?

  22. #22

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Lightbulb

    Definitely, not? We can not make Windows in VB and if we do so the end user will be forced to have the following minimum hardware requirements:

    Processor: 2Ghz (Athlon-II HA HA HA)
    RAM: 1GB
    HDD: 40GB
    System Bus: 500 MHz

    an so on .........................................

    Systems with this configuration will only give the optimum performance like Windows.




  23. #23
    Guest
    In my opinion Vb doesn't come close to C or C++.
    A visual basic app runs on top of C.
    All VB programs need to be interpreted by C or C++ functions to do anything at all.

    You can do everything using C and Vb does only what a C library lets it.

    The only drawback to C or C++ is that it is in fact so much more difficult to learn because it is so extensive and covers just about everything you'd ever want to do.

    I also heard that the complexity of the language itself was intentional so that not just anybody could learn it in 21 days like VB.



  24. #24
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I have to say, I'm just learning C++ and I love the syntax of the language, maybe It's just the way my brain works but after the initial shock of a case sensitive language that didn't tell you about an error until compile time the whole thing seems a lot more logical in a way, I think VB is better for front ends and C++ for back ends, getting the 2 languages to work together is the Ideal solution.

  25. #25
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    Well to understand why C/C++ is so complex you have to understand that it was created to help devolop UNIX. VB was built for Rapid Devolopment of small business apps, those are two very different goals.
    I know what you mean Sam, I was doing just VB for a bit and you do end up picking up some bad habits. Always forgetting case matters now and forgetting to put semicolons.
    "People who think they know everything are a great annoyance to those of us who do."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width