List of few basic questions

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

cryptid
Newbie
Posts: 9
Joined: Thu Aug 18, 2005 2:57 am
Contact:

List of few basic questions

Post by cryptid »

what is the diffrence between QB v4.5, P.D.S v7.1 and FB
how do they differ?
can QB codes be compiled using FB?
y use FB?
are the file generated by FB smaller than file generated by QB (the .exe file)?
are the files generated by QB 7.1 smaller than the files generated by QB 4.5? are the files generated by FB run faster than files generated by QB?
can icons be added to the files generated by FB?

i will add few more questions in futur (i had many questions in mind but suddenly forgot)
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

what is the diffrence between QB v4.5, P.D.S v7.1 and FB

QuickBasic 4.5 is the most popular QB compiler made by M$

P.D.S. 7.X is a professional version of QB 4.5 but the name changed. It allows overlays and database access that QB 4.5 doesn't have along with a few useful functions like DIR$ not found in QB 4.5

FB is freebasic http://www.freebasic.net and is an opensource project started by v1ctor that aimes to be the evolution of QB it is multi platform and can compile for DOS, Windows and Linux.

can QB codes be compiled using FB?

While a serious attempt at QB compatibility is made in FreeBasic, any 16 bit code (like DEF SEG for example) is undeeded since FreeBasic is 32 bits even on DOS. PCOPY in text mode (screen 0) is currently not suported either although I'm trying to kick the right butts to get it done, to no avail but there's always hope lol

y use FB?

Even for DOS programs, FreeBasic is 32 bits so no more memory limits known to the QB world, to me just that is good enough reason to use it (PCOPY would be another one..hint hint lol).

are the file generated by FB smaller than file generated by QB (the .exe file)?

Roughly the same size

are the files generated by QB 7.1 smaller than the files generated by QB 4.5?

Roughly the same size

are the files generated by FB run faster than files generated by QB?

Yes, because of the 32 bit architecture of FreeBasic....

can icons be added to the files generated by FB?

Yes
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Post by Nodtveidt »

MystikShadows wrote:are the files generated by FB run faster than files generated by QB?

Yes, because of the 32 bit architecture of FreeBasic....
Not only that...the compiler itself is more strict. Microsoft's old compilers tended to be very lax but their runtime libraries were often slower than competitor's...of course, with their far superior IDEs, I guess it didn't matter than their compilers tended to output somewhat slower executables...
cryptid
Newbie
Posts: 9
Joined: Thu Aug 18, 2005 2:57 am
Contact:

Post by cryptid »

So far what i feel is that FB is more superior ro QB so i have another Question,Should i learn FB or VB6?which 1 u think is a better option?
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

It depends on what you want to do with your language. For one thing, if you want your programs to work on DOS, Windows and Linux, you better choose to learn FreeBasic. If you want to create programs and utilities for windows only. VB will let you create those faster. But if you want to create games, FreeBasic will be the better choice unless your game is entirely made of Windows basic controls.

So it really depends on what you want to learn programming for.
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Post by Nodtveidt »

FB is definately far superior for games that are not GUI-based. VB6 is definately far superior for games that are GUI-based. But if you don't make games, then it comes down to applications: VB6 excels in GUI development, and FB excels in raw number crunching. So pick your poison based on your needs. :)
moneo
Veteran
Posts: 451
Joined: Tue Jun 28, 2005 7:00 pm
Location: Mexico City, Mexico

Post by moneo »

cryptid wrote:So far what i feel is that FB is more superior ro QB so i have another Question,Should i learn FB or VB6?which 1 u think is a better option?
Another consideration is what language is going to look good on your resume. Visual Basic experience is definitely going to be more desireable, whereas Freebasic today is not exactly a household word.
*****
If you are ahead of me, lead.
If you are behind me, follow.
If you are not doing anything,
Get out of the way.
Guest

Post by Guest »

moneo wrote:
cryptid wrote:So far what i feel is that FB is more superior ro QB so i have another Question,Should i learn FB or VB6?which 1 u think is a better option?
Another consideration is what language is going to look good on your resume. Visual Basic experience is definitely going to be more desireable, whereas Freebasic today is not exactly a household word.
*****
Well then i will start Learning VB coz i want to learn programing for developing applications and not games and yes VB would look good on a resume
Seb McClouth

Post by Seb McClouth »

I think you've misunderstand sumfin. FB is not only for games. Just like Qb you can use it to develop applications. It should be even possible to build a windows-shell for DOS in the process.

VB is okay but I personally think it is cheating because you don't need to build the windows yourselfs anymore... But that's my opinion.

grtz
Seb
User avatar
lurah-
Veteran
Posts: 206
Joined: Mon Nov 01, 2004 10:47 am
Location: Finland
Contact:

Post by lurah- »

Well, wich ever language you choose to start learning, its not so "far" from other after all.
By learning VB or FB, is good base to learn other too later.
User avatar
The Awakened
Veteran
Posts: 144
Joined: Sun Aug 07, 2005 1:51 am

Post by The Awakened »

Seb McClouth wrote:I think you've misunderstand sumfin. FB is not only for games. Just like Qb you can use it to develop applications. It should be even possible to build a windows-shell for DOS in the process.

VB is okay but I personally think it is cheating because you don't need to build the windows yourselfs anymore... But that's my opinion.

grtz
Seb
But it speeds up development time. Example: I'd like to write a more functional map/data editor for my game, with a nice user interface and whatnot. I don't want to piss around debugging API code for a utility that the end user will never see.

But it is slower, apparently. And I'm sure Windows API coding can be fun, and I am learning it for FB.
"Sorry for beating you up with a baseball bat Julian, but I DID think that you were a samsquanch."
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Post by Nodtveidt »

VB's only real problem is the existence of a required external dependency. If its EXEs were able to run with the runtime library embedded into the EXE, not only would VB be much more "transparent" to the user (runs out-of-the-box as opposed to having to install a seperate runtime), but it might be a little faster...

The .net madness takes this external dependency to the maximum of idiocy. A 23MB runtime package just to run applications? fork you. And it doesn't matter if it's VB, VC, or any other .net languages...if you don't have the .net framework, you can't run the app. That's bullshit wrapped in gauze and fried for three hours in canola oil. And the funniest part is that many of the morons who code in .net are among the same bozos who used to whine about VB6's 1.5MB external runtime...
moneo
Veteran
Posts: 451
Joined: Tue Jun 28, 2005 7:00 pm
Location: Mexico City, Mexico

Post by moneo »

Nek, that's really funny about the runtime packages. The sad part is that it's true. Everybody wants to package you up and convert you to become part of a captive audience. I'm glad that knowledgeable guys like you are still around to resist this marketing trend.
*****
User avatar
Kyle
Veteran
Posts: 107
Joined: Thu Apr 14, 2005 2:41 pm

Post by Kyle »

Thanks for the quote :D
User avatar
The Awakened
Veteran
Posts: 144
Joined: Sun Aug 07, 2005 1:51 am

Post by The Awakened »

Correct me if I'm wrong, but isn't the .NET framework supposed to be like a bastardized version of the Java VM? Which in itself is stupid, since the Java VM is supposed to be platform independent... I don't see MS writing the .NET framework for other platforms like Linux and Macintosh.

Oh right, our motto around here is "fork Macintosh. " :D :wink:

Anyway, I don't have any programs that require the .NET framework, so what's all the hype about it? I've heard stuff like stability, memory management, etc...
"Sorry for beating you up with a baseball bat Julian, but I DID think that you were a samsquanch."
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

stability? Did I hear M$ and Stability in the same sentence??? LOL...

but yeah...today..finally...after a decade and a half we can say that in the same sentence...but not always ;-)....lol

yeah I'm not pro .NET either....I never was....for the same reason I'm not really for java either....There's not point trying to do what these are trying to do...those are not a step in the right direction...not by a long shot.
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

Post by {Nathan} »

Nekrophidius wrote:VB's only real problem is the existence of a required external dependency.
And the fact that its just too damn easy and un-flexible... I mean really, having to create a whole new controll just to make a new look? Is it just me or is that bull...

And I was never for .net since the moment it started. why? because .net is a DOMAIN!
Image
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Post by Nodtveidt »

Nathan1993 wrote:And the fact that its just too damn easy and un-flexible... I mean really, having to create a whole new controll just to make a new look? Is it just me or is that bull...
I don't quite get what you mean by this...?
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

Yeah me neither...you don't have to do that at all...atleast I don't need to ;-)....I made an app that looked and worked 100% like a laptop pad (buttons ont he side, main viewing screen with LCD like screen black and white...worked nothing like Windows...without a single user control.
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

Post by {Nathan} »

I mean that if you want to have a new function (like the Text box, frames, ect) you have to create a new control (for most people that arn't hard-core programmers like us, anyway).
Image
Post Reply