Page 1 of 1
QLB - QuickLibrary
Posted: Thu Dec 02, 2010 5:48 am
The QB manual states that a QLB can be made using an OBJ file written in Microsoft Pascal, C, Fortran, MASM etc.
Does anyone know if a 32 bit OBJ can be linked to a QuickLibrary.
Posted: Fri Dec 03, 2010 6:12 am
NOT TO MY KNOWLEDGE. MAYBE USING THE FREEBASIC:
QLB library : linking 32 and 16 bit OBJ modules.
Posted: Fri Dec 03, 2010 7:41 am
I have tried FBC but find that I must change too much in my programs for them to run using -lang QB or -lang fblite. -lang FB is virtually a totally different language to learn and does not have the ease and simplicity of QB4.5. As such it is closer to Pascal then BASIC. It also does not solve my problem with the no Screen 7 and tiny Screen 13 on the newer Nvidia cards.
At present I use DOSBOX 0.74 to get around the Screen problems.
I was actually a bit dim I am going to try it in any case to see what happens. I presume the Qb manual refers to 16 bit when it comes to the using of other languages to write a QLB.
Posted: Fri Dec 03, 2010 9:32 am
It doesn't have a way to use other languages yet or use the QLB Library, but QB64 can compile and run QB4.5 programs. To get around the smaller SCREEN 13 or 7 use _FULLSCREEN at the start of the program.
Libraries can be made using QB code too.
Keywords: http://qb64.net/wiki/index.php?title=Ke ... phabetical
However DLL and SDL Libraries will soon be supported.
Posted: Fri Dec 03, 2010 1:17 pm
beware of using _fullscreen. there are 2 different fullscreen settings, one of them works nice when running on a monitor but it doesnt work on a tv.. i have to use the 2nd fullscreen mode for tv.
Posted: Fri Dec 03, 2010 5:01 pm
You can designate that or allow _FULLSCREEN to set it. On a TV you may have to set it manually as it is not part of the PC.
The function can return the current setting to a program:
mode% = _FULLSCREEN
0 = _OFF (any positive non-0 value means fullscreen is on)
1 = _STRETCH
2 = _SQUAREPIXELS
QB64 was updated for DLL and Libraries today!
QLB LIBRARY: LINKING 32 AND 16 BIT OBJ MODULES.
Posted: Sun Dec 05, 2010 5:43 am
YES, I THINK YOU ARE USING THE FBWINDOWS THAT TREATS THE DOS
Theunis wrote:... FB is virtually a totally different language...
LITTERALLY USING KARATE KICKS. 'EXPERTS' MADE IT THAT WAY.
DOWNLOAD THE DOS VERSION _HERE_.
YOU CAN COMPILE BY COMMANDLINE.
I THINK YOU WILL NEED TO COMPILE THE WHOLE PROGRAM IN FBDOS BUT
THERE ARE FEW CORRECTIONS TO MAKE. FOR EXAMPLE,
DOING THIS: SHELL "DIR/O"
MUST BE: SHELL "DIR /O"
THERE IS NO 'SOUND' COMMAND, ETCETERA.
IT PRODUCES THE OBJ FILE THIS WAY:
FBC.EXE -c XXX.BAS
READ IT HERE
THE -c MUST BE LOWERCASED.
YOU WILL SEE THE 'XXX.O' FILE THAT IS THE 'XXX.OBJ' FILE.
Posted: Mon Dec 06, 2010 7:10 am
Thank Ted and OPPRESSION for the info.