Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB ..... FB
#1
Heya

I was just wondering if anyone wrote some "from qb to fb" tutorial yet. i've been programming qb for years... the last two years i've just been programming delphi for school and no qb at all.

well, i wanna learn fb. i think i can still program qb decent enough - so what exactly are the differences between qb and fb? and what's is the best way to get into fb? any nice code samples around? tutorials? anything^^

thanx in advance / mariuz
'm so lazy... no really.... i am the laziest programmer ever ... ever.
Reply
#2
Well, it's pretty much the same. If you want some code examples, it actually comes standard with quite a few snippets that can show you how to do most anything you can need. I believe there's a help file for the gfxlib which allows QB graphics syntax but is about 1000 times better.

Really, it's nothing strange or unexpected. You should pick it up just fine.

I look forward to seeing some of your projects ported to FB! :wink:
Reply
#3
Hello Heya
first of all FB is 32 bit there is no need (and won't work) def seg=&HXXXX ...
and any string or array can be together max=2GB
same with Code max=2GB

there is no ON TIMER GOSUB / GOTO use Threads
integer is now 32bit the old test% is replaced with DIM test AS SHORT

many (new) data types are exist in singned and unsigned
8bits: byte,ubyte
16bits: short,ushort
32bits: integer,uinteger
64bits: longinteger,ulonginteger

this "old" types are supported too :-)
32bits: floatingpoint single
64bits: floatingpoint double
string and string * N

new are this
zstring * N zstring ptr (terminated with 0)
and all data types can be referenced with pointers (ptr)

dim as integer Test
dim as integer ptr Address
tes=5
address=@test
print test,address
*address=7
print test,address

many things now near to C:
DIM AS ANYDATATYPE anynam, anyname ...
old style
DIM anyname AS ANYDATATYPE, anyname AS ANYDATATYPE, ...

dim as string test="Hello"
print test, test[0], test[1]

Good luck and happy coding.

Joshy
sorry about my english
Reply
#4
There is a .chm file containing the Freebasic wiki documentation available on the download page of freebasic.net. If you're proficient in QB, the wiki has all the info needed to bring you up to speed with FB.
Reply
#5
ahhh, thanx !!! how could i oversee this damn useful fb wiki documentation.

:rotfl:
'm so lazy... no really.... i am the laziest programmer ever ... ever.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)