Questions for FB-C

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

Post Reply
speewave
Coder
Posts: 14
Joined: Sun Jul 30, 2006 9:44 pm

Questions for FB-C

Post by speewave » Thu Aug 17, 2006 10:46 pm

A few questions for fb are:

Can i use pp256 for my FB app?
Can i sell a game with BASSMOD with out paying a license?
will bassmod work on DOS\Linux?

And For C\C++:
Can SDL Work for DOS
________
Genetically modified food
Last edited by speewave on Sat Feb 12, 2011 5:31 pm, edited 1 time in total.

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} » Fri Aug 18, 2006 6:08 am

If you use allegro instead, yes, you can sell your game without paying royalties and it is cross-platform. Also, for PP256, check out http://www.freebasic.net/forum/viewtopic.php?t=5415.
Image

User avatar
BadMrBox
Veteran
Posts: 86
Joined: Tue Feb 28, 2006 12:19 pm

Post by BadMrBox » Fri Aug 18, 2006 8:16 am

> Can i use pp256 for my FB app?
Yeah you can.

Code: Select all

bload "yourgfx.put", VARPTR(array(0))

speewave
Coder
Posts: 14
Joined: Sun Jul 30, 2006 9:44 pm

Post by speewave » Fri Aug 18, 2006 2:35 pm

i haven't tried PP256 yet on FB but thanx for the tip!

also i made a small fb app. works great in Windows but it does not compile an EXE for DOS!

Here's what i typed:

Code: Select all

'HW.bas

Print "Hello World!"
Sleep

and in the command prompt i typed in:
fbc hw.bas and i found no hw.exe!!! do i need to type in any switches for that?

also... Should i use Allegro to make my dos game work for dos\windows or should i just use FB?
________
Alaska Medical Marijuana
Last edited by speewave on Sat Feb 12, 2011 5:31 pm, edited 1 time in total.

Guest
Veteran
Posts: 128
Joined: Sun Aug 14, 2005 8:33 pm
Location: Forest Lake, MN
Contact:

Post by Guest » Sat Aug 19, 2006 1:01 pm

Allegro and SDL work on things called DLLs which DOS does not have and cannot execute or load into memory. Thus if you want to make a 32-bit DOS game you will have to rely on FB itself and libraries that can compile fully into your code.

It should have at least compiled. Do you have something called a.out or hw.o or hw.obj in the directory?

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} » Sat Aug 19, 2006 6:56 pm

Allegro has a DOS port too. Basically any platform except for OS/2 is supported.
Image

Post Reply