Page 1 of 1

Libraries in FB

Posted: Wed Aug 17, 2005 11:27 am
by Guest
How can I include libraries in FreeBasic?

Posted: Wed Aug 17, 2005 11:38 am
by Seb McClouth
Hey Bill

Ask Linus Torvalds...

You could try '$include:'path/filename'

grtz
Seb

Posted: Wed Aug 17, 2005 12:20 pm
by Rattrapmax6
:P Are you really Bill Gates? or some silly joker?

Anyway, you can't just use any lib in FB, ones used in QB won't work unless you find a ported version of them, and yep, Seb is right...

Code: Select all

'$include: 'path/name.bi'
Or, you can do this:

Code: Select all

#include 'path/name.bi'
More info at: http://www.freebasic.net/wiki/wikka.php?wakka=FBWiki

Sorry no direct link,.. I'm offline right now,.. and after I sign back in and post this, I'll need to reboot be4 I'll have any surfing power... :x

QBASIC Questions & Answers

Posted: Wed Aug 17, 2005 10:11 pm
by Guest
QBASIC Questions & Answers
QBASIC Questions & Answers
QBASIC Questions & Answers
QBASIC Questions & Answers

Posted: Thu Aug 18, 2005 12:10 am
by Pete
FreeBasic questions are allowed here too. In fact, I encourage them. The more people that switch to FB, the better.

Posted: Thu Aug 18, 2005 3:35 am
by SebMcClouth
But I just switched to PDS... and I don't even have FreeBasic... but since I've read that FreeBasic is (should) 100% compatible with QB... I figured hey... you should be able to load .bi files the same way.

grtz
Seb

Posted: Thu Aug 18, 2005 8:19 am
by Pete
Seb: I was responding to the Guest's post directly above mine, not you!

Anyway, yes, you should check out FB. It's not 100% QB-compatible, but you can convert just about any QB program to FB without much of a hassle. Plus it's so refreshing to make programs that other people can actually run. The rest of the world uses Win32 PCs, and can't get complicated QB programs to run. I use WinXP, and I can't run most QB programs. Just about anything that loads an external library crashes and burns on XP or Win2000. It's extremely frustrating, and if I didn't have an obligation to try out QB programs for the magazine, I would just give up there.

Anyway, why would you pigeonhole yourself to a market of a couple hundred QB programmers with old DOS/Win95/98 machines, when you could create essentially the same program on a platform that 85-90% of the entire world can run?

Posted: Thu Aug 18, 2005 8:41 am
by jb
Is he a joker?
Don't make me laugh...

Posted: Thu Aug 18, 2005 9:36 am
by {Nathan}
Hey pete, did you get my QBEXP article?

Posted: Thu Aug 18, 2005 9:49 am
by Rattrapmax6
Yeah... FreeBASIC is the new wave,.. powerful, brillant, ect, ect....

You can find tons of cool examples here, just goto my downloads section:
http://members.aol.com/rattrapmax6/xtrgraphics.html

:wink:

Posted: Thu Aug 18, 2005 10:30 am
by SebMcClouth
But my fake OS is a DOS program... :(. It's not suppose to work yet in Windows.... :twisted: Someday it will!!!

Grtz
Seb

Posted: Thu Aug 18, 2005 11:42 am
by {Nathan}
Seb, I could port it to FB then it would be linux, windows and dos in 1.

Posted: Thu Aug 18, 2005 12:05 pm
by Rattrapmax6
No.. it be FBinux.. :P

:wink:

Posted: Thu Aug 18, 2005 2:12 pm
by {Nathan}
Or just Binux... 2 types of basic!

Posted: Fri Aug 19, 2005 6:51 am
by Seb McClouth
But... but Binux sounds like been ucks, no good... fbinux sounds like (sorry f*cking been ucks, whatever that may be) It's just the name of the core... It stays Qbinux. :lol:

grtz
Seb