Author Topic: VB6 Limitations?  (Read 8846 times)

0 Members and 2 Guests are viewing this topic.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
VB6 Limitations?
« on: October 13, 2006, 11:19:49 am »
I was wondering if anybody knows what VB6's limitations are like (details below)?  I need to know this (fairly urgently) for a project. 

We're going to have to:
- Run large MySQL/MSSQL queries (on the order of 1,500,000 or more rows)
- Use a significant amount of memory (on the order of 2GB or more)
- Output a significant amount of data (2GB or more)

Does anybody know how well VB6 can handle that? 

(I'm NOT looking for alternatives right now, I'm looking for feasibility)

Thanks

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: VB6 Limitations?
« Reply #1 on: October 13, 2006, 12:57:57 pm »
As long as you're dealing with connected data (a RecordSet), using MSSQL with that many rows will leave the load on MSSQL, not on VB.

If you use VB-specific language features (thing supported by its runtime library) or don't do native compilation you might run into trouble.  But other than that, you'll probably be okay.

You just have to remember - the best code in VB6 is generated when you're *not* thinking like a programmer.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: VB6 Limitations?
« Reply #2 on: October 13, 2006, 01:08:19 pm »
As long as you're dealing with connected data (a RecordSet), using MSSQL with that many rows will leave the load on MSSQL, not on VB.
They do have to be returned to VB, though, in memory or something..

If you use VB-specific language features (thing supported by its runtime library) or don't do native compilation you might run into trouble.  But other than that, you'll probably be okay.
I'll keep that in mind.  *note to self: find the proper way to use the file-write API*

You just have to remember - the best code in VB6 is generated when you're *not* thinking like a programmer.
The sad part is, I think you might be right... this project is going to SUCK.  But it's a HUGE paycheck, so we can't refuse....

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: VB6 Limitations?
« Reply #3 on: October 13, 2006, 01:38:26 pm »
The sad part is, I think you might be right... this project is going to SUCK.  But it's a HUGE paycheck, so we can't refuse....
Why can't you do VB.NET?  I'm sure you'd enjoy the class library, it's not far off from Java.

And here's the way your record set will work (if I recall correctly... it's been about five years since I've used one of these).  You'll create a database connection, probably something like
Code: [Select]
Dim oCon As ADODB.Connection
Set oCon = CreateObject("ADODB.Connection")

I don't know if there are specific ActiveX classes for MSSQL - I'm pretty sure everything goes through ADODB.

So after you set it up with a connection string and all that, then you'll create a RecordSet object.
Code: [Select]
Dim oRS As ADODB.RecordSet
Set oRS = CreateObject("ADODB.RecordSet")
oRS.Open "SELECT * FROM Lusers;", oConn

To enumerate rows you check the EOF property

Code: [Select]
While Not oRS.EOF
  ' Do shit
Wend
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: VB6 Limitations?
« Reply #4 on: October 13, 2006, 03:17:37 pm »
Why can't you do VB.NET?  I'm sure you'd enjoy the class library, it's not far off from Java.
Because the customer demands VB6.  Apparently they have their own developers (probably some guy in the back who plays WoW) who would be able to maintain VB6 (ha!). 

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: VB6 Limitations?
« Reply #5 on: October 13, 2006, 05:09:12 pm »
Because the customer demands VB6.  Apparently they have their own developers (probably some guy in the back who plays WoW) who would be able to maintain VB6 (ha!). 

HAHAHA.  What a douchebag.

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: VB6 Limitations?
« Reply #6 on: October 13, 2006, 05:16:38 pm »
Haha I can't stand VB6, I can't believe I used to program in it. It just seems so..iffy.

Is there even a powerful basic language?
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: VB6 Limitations?
« Reply #7 on: October 13, 2006, 05:20:36 pm »
Haha I can't stand VB6, I can't believe I used to program in it. It just seems so..iffy.

Is there even a powerful basic language?

VB .NET?

Offline AntiVirus

  • Legendary
  • x86
  • Hero Member
  • *****
  • Posts: 2521
  • Best
    • View Profile
Re: VB6 Limitations?
« Reply #8 on: October 13, 2006, 05:35:56 pm »
Haha I can't stand VB6, I can't believe I used to program in it. It just seems so..iffy.

Is there even a powerful basic language?

VB .NET?
Is it really powerful?  I hate VB and VB .NET and I have hardly programmed in them.  Too many objects for me and not enough coding.
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: VB6 Limitations?
« Reply #9 on: October 13, 2006, 05:39:54 pm »
Is it really powerful?  I hate VB and VB .NET and I have hardly programmed in them.  Too many objects for me and not enough coding.

You clearly know little about VB .NET, then. :P  Remember: a biased opinion isn't a very good one! (haha)

To be honest, I don't know that much either, but what I do know is that it's object oriented, it has the same access to the .NET framework that C# does and that it's far less retraded than VB.

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: VB6 Limitations?
« Reply #10 on: October 13, 2006, 05:42:24 pm »
Haha I can't stand VB6, I can't believe I used to program in it. It just seems so..iffy.

Is there even a powerful basic language?

VB .NET?

Goddamn you Sidoh! :( Always proving me wrong.

VB .NET is what VB should of been.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline AntiVirus

  • Legendary
  • x86
  • Hero Member
  • *****
  • Posts: 2521
  • Best
    • View Profile
Re: VB6 Limitations?
« Reply #11 on: October 13, 2006, 05:46:58 pm »
Is it really powerful?  I hate VB and VB .NET and I have hardly programmed in them.  Too many objects for me and not enough coding.

You clearly know little about VB .NET, then. :P  Remember: a biased opinion isn't a very good one! (haha)

To be honest, I don't know that much either, but what I do know is that it's object oriented, it has the same access to the .NET framework that C# does and that it's far less retraded than VB.
It's true.  I do know *very* little of VB .NET.  I have only programmed in it once (only made a simple program) about 4 years ago. :P

I only followed the book, so I didn't really learn anything. :P
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: VB6 Limitations?
« Reply #12 on: October 13, 2006, 05:50:52 pm »
As you probably know, .NET languages compile into bytecode, so which .NET language you use doesn't make a huge difference.  So, in essence, VB .NET is about the same as C#, which I'm sure you'll hear from a number of people here (including myself, with the small experience I've had with it!) is a wonderful language.

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: VB6 Limitations?
« Reply #13 on: October 13, 2006, 06:00:03 pm »
As you probably know, .NET languages compile into bytecode, so which .NET language you use doesn't make a huge difference.  So, in essence, VB .NET is about the same as C#, which I'm sure you'll hear from a number of people here (including myself, with the small experience I've had with it!) is a wonderful language.

Yep, C# is great. I hate not coding in it :/
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline AntiVirus

  • Legendary
  • x86
  • Hero Member
  • *****
  • Posts: 2521
  • Best
    • View Profile
Re: VB6 Limitations?
« Reply #14 on: October 13, 2006, 06:01:27 pm »
The only language on the .NET framework that I have tried is VB .NET. :(
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: VB6 Limitations?
« Reply #15 on: October 13, 2006, 08:13:56 pm »
Ok, we know two things:
- VB6 sucks.  Ass. 
- I have to use VB6 on a huge upcoming project which'll probably be 4+ months
--------
- Life sucks. 


My company will probably earn a 6-digit sum for writing this, though, so I think I can live..

Offline AntiVirus

  • Legendary
  • x86
  • Hero Member
  • *****
  • Posts: 2521
  • Best
    • View Profile
Re: VB6 Limitations?
« Reply #16 on: October 13, 2006, 08:33:32 pm »
Ok, we know two things:
- VB6 sucks.  Ass. 
- I have to use VB6 on a huge upcoming project which'll probably be 4+ months
--------
- Life sucks. 


My company will probably earn a 6-digit sum for writing this, though, so I think I can live..
Yeah..   I feel bad for you. :(  -ish
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: VB6 Limitations?
« Reply #17 on: October 14, 2006, 12:23:34 am »
My theology on VB6 is that it makes a hard job easy but inefficient, and should be used when your development time is more important than your run efficiency. Every language has it's use, and learning programming is a nice use of VB. Sure, it can teach some bad habits (case insensitivity, non-explicit declarations) but it can teach basic principles (code seperation, scope). I can honestly say that I personally learned things in VB6 that I still use today in Java and C#.

Back on topic, VB can do anything C can, basically, except inline assembly and compile DLL's (which can be both done with sufficient tweaking, but I've never tried), but it's slow at doing it.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: VB6 Limitations?
« Reply #18 on: October 14, 2006, 09:42:29 am »
It can't be compiled into machine code.  Owned.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: VB6 Limitations?
« Reply #19 on: October 14, 2006, 11:45:21 am »
My theology on VB6 is that it makes a hard job easy but inefficient, and should be used when your development time is more important than your run efficiency. Every language has it's use, and learning programming is a nice use of VB. Sure, it can teach some bad habits (case insensitivity, non-explicit declarations) but it can teach basic principles (code seperation, scope). I can honestly say that I personally learned things in VB6 that I still use today in Java and C#.

Back on topic, VB can do anything C can, basically, except inline assembly and compile DLL's (which can be both done with sufficient tweaking, but I've never tried), but it's slow at doing it.
It makes a job hard for a decent programmer, because it's so painful to use.  It only makes a job easy for somebody who doesn't know what they're doing. 

It can't be compiled into machine code.  Owned.
Yes it can.  It's just done poorly and heavily relies on libraries.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: VB6 Limitations?
« Reply #20 on: October 14, 2006, 02:44:34 pm »
My theology on VB6 is that it makes a hard job easy but inefficient, and should be used when your development time is more important than your run efficiency. Every language has it's use, and learning programming is a nice use of VB. Sure, it can teach some bad habits (case insensitivity, non-explicit declarations) but it can teach basic principles (code seperation, scope). I can honestly say that I personally learned things in VB6 that I still use today in Java and C#.

Theology is the study of religion...

Isn't that practice sort of obvious, though?  Any serious programmer knows the terrible aspects of VB6 and what a short time it takes to code a monstrosity. :P

Back on topic, VB can do anything C can, basically, except inline assembly and compile DLL's (which can be both done with sufficient tweaking, but I've never tried), but it's slow at doing it.

Big deal.  A buggy cart can travel as far as a Mercedes Benz, but that doesn't make the two comparable on that standard.

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: VB6 Limitations?
« Reply #21 on: October 14, 2006, 03:41:13 pm »
Theology is the study of religion...
Have you ever read a programming book?  They talk about religious wars all the time...
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: VB6 Limitations?
« Reply #22 on: October 14, 2006, 03:46:25 pm »
Have you ever read a programming book?  They talk about religious wars all the time...

Hahahahah. <3

Edit: Ron, I have an idea.  Go onto Microsoft's website and sign the client up for massive amounts of spam regarding the .NET platform!
« Last Edit: October 14, 2006, 03:49:26 pm by Sidoh »