Author Topic: VB6 Limitations?  (Read 8811 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